Created
December 5, 2014 19:31
-
-
Save michael-schaller/94a2ee39bde248c83742 to your computer and use it in GitHub Desktop.
Simple Go SWIG C++ example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "example.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef EXAMPLE_H | |
#define EXAMPLE_H | |
class Example { | |
}; | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example | |
import ( | |
"testing" | |
) | |
func TestExample(t *testing.T) { | |
e := NewExample() | |
DeleteExample(e) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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