github.com/MangoDowner/go-gm@v0.0.0-20180818020936-8baa2bd4408c/misc/swig/callback/callback.swigcxx (about) 1 /* Copyright 2011 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 /* An example of writing a C++ virtual function in Go. */ 6 7 %module(directors="1") callback 8 9 %{ 10 #include <string> 11 #include "callback.h" 12 %} 13 14 %include "std_string.i" 15 16 %feature("director"); 17 18 %include "callback.h"