callback.cc 388 B

123456789101112131415
  1. // Copyright 2013 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // This .cc file will be automatically compiled by the go tool and
  5. // included in the package.
  6. #include <string>
  7. #include "callback.h"
  8. std::string Caller::call() {
  9. if (callback_ != 0)
  10. return callback_->run();
  11. return "";
  12. }