summaryrefslogtreecommitdiff
path: root/tests/projects/swig/java_c/src/example.i
diff options
context:
space:
mode:
authorcompilelife <[email protected]>2023-03-14 17:49:58 +0800
committercompilelife <[email protected]>2023-03-14 17:49:58 +0800
commitf6898c7129bfae5bfe6aa71563370d07517a81de (patch)
tree0aebc6a50ba9a5ece590f9ed90dc24fc58c66c6c /tests/projects/swig/java_c/src/example.i
parent855de78c41a4866730423397f61610acfbb5f250 (diff)
[swig java] add demo
Diffstat (limited to 'tests/projects/swig/java_c/src/example.i')
-rw-r--r--tests/projects/swig/java_c/src/example.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/projects/swig/java_c/src/example.i b/tests/projects/swig/java_c/src/example.i
new file mode 100644
index 000000000..e952f6123
--- /dev/null
+++ b/tests/projects/swig/java_c/src/example.i
@@ -0,0 +1,5 @@
+%module example
+%{
+extern int fact(int n);
+%}
+extern int fact(int n);