github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/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"