...

Text file src/cmd/cgo/internal/swig/testdata/callback/main.cc

Documentation: cmd/cgo/internal/swig/testdata/callback

     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
     5// This .cc file will be automatically compiled by the go tool and
     6// included in the package.
     7
     8#include <string>
     9#include "main.h"
    10
    11std::string Caller::call() {
    12	if (callback_ != 0)
    13		return callback_->run();
    14	return "";
    15}

View as plain text