summaryrefslogtreecommitdiff
path: root/tests/projects/swig/auto_include/src/example.i
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/swig/auto_include/src/example.i')
-rw-r--r--tests/projects/swig/auto_include/src/example.i13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/projects/swig/auto_include/src/example.i b/tests/projects/swig/auto_include/src/example.i
new file mode 100644
index 000000000..945b77892
--- /dev/null
+++ b/tests/projects/swig/auto_include/src/example.i
@@ -0,0 +1,13 @@
+%module example
+
+%{
+/* Put headers and other declarations here */
+#include "nlohmann/json.hpp"
+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);