Skip to content

Instantly share code, notes, and snippets.

@michael-schaller
Created December 5, 2014 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-schaller/94a2ee39bde248c83742 to your computer and use it in GitHub Desktop.
Save michael-schaller/94a2ee39bde248c83742 to your computer and use it in GitHub Desktop.
Simple Go SWIG C++ example
#include "example.h"
package example
#ifndef EXAMPLE_H
#define EXAMPLE_H
class Example {
};
#endif
package example
import (
"testing"
)
func TestExample(t *testing.T) {
e := NewExample()
DeleteExample(e)
}
%module example
%header %{
#include "example.h"
%}
class Example {
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment