summaryrefslogtreecommitdiff
path: root/tests/projects/swig/python_cpp/src/example.i
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-24 12:50:52 +0800
committerGitHub <[email protected]>2021-09-24 12:50:52 +0800
commit024183f9c98dd03f22384203238ba661a5714640 (patch)
tree9913cdd96df86f6f289a3afd57c63d5105201e0d /tests/projects/swig/python_cpp/src/example.i
parentfbccc2375dba05f227ff8e6ec0b61c9357ca449d (diff)
parent4a8694d08d48ebc4101cc1b35e88b3fffe56de59 (diff)
Merge pull request #1703 from xmake-io/swig
Support Swig
Diffstat (limited to 'tests/projects/swig/python_cpp/src/example.i')
-rw-r--r--tests/projects/swig/python_cpp/src/example.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/projects/swig/python_cpp/src/example.i b/tests/projects/swig/python_cpp/src/example.i
new file mode 100644
index 000000000..34193edc7
--- /dev/null
+++ b/tests/projects/swig/python_cpp/src/example.i
@@ -0,0 +1,11 @@
+%module example
+%{
+/* Put headers and other declarations here */
+extern double My_variable;
+extern int fact(int);
+extern int my_mod(int n, int m);
+%}
+
+extern double My_variable;
+extern int fact(int);
+extern int my_mod(int n, int m);