callback.swigcxx 374 B

123456789101112131415161718
  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. /* An example of writing a C++ virtual function in Go. */
  5. %module(directors="1") callback
  6. %{
  7. #include <string>
  8. #include "callback.h"
  9. %}
  10. %include "std_string.i"
  11. %feature("director");
  12. %include "callback.h"