summaryrefslogtreecommitdiff
path: root/tests/projects/swig/python_cpp/src/example.i
diff options
context:
space:
mode:
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);