diff options
| author | ririyeye <[email protected]> | 2024-08-30 16:35:18 +0800 |
|---|---|---|
| committer | ririyeye <[email protected]> | 2024-08-30 16:35:18 +0800 |
| commit | b42c2b02ae23c7c0b4c4f43dc3adfbb7eae2c1f3 (patch) | |
| tree | 13db3556bb5d20a5fbfcbc84a097709efadf321c /tests/projects/swig/java_c/src | |
| parent | 8a6f4c014f090c5491be5e8a8e74445c48c25fd1 (diff) | |
add swig depend file
Diffstat (limited to 'tests/projects/swig/java_c/src')
| -rw-r--r-- | tests/projects/swig/java_c/src/example.c | 4 | ||||
| -rw-r--r-- | tests/projects/swig/java_c/src/example.i | 6 | ||||
| -rw-r--r-- | tests/projects/swig/java_c/src/example2.i | 6 | ||||
| -rw-r--r-- | tests/projects/swig/java_c/src/test.h | 3 |
4 files changed, 19 insertions, 0 deletions
diff --git a/tests/projects/swig/java_c/src/example.c b/tests/projects/swig/java_c/src/example.c index 06f76c542..a3f19629d 100644 --- a/tests/projects/swig/java_c/src/example.c +++ b/tests/projects/swig/java_c/src/example.c @@ -2,3 +2,7 @@ int fact(int n) { return n; } +int fact2(int n) { + return n; +} + diff --git a/tests/projects/swig/java_c/src/example.i b/tests/projects/swig/java_c/src/example.i index e952f6123..1228cb6a9 100644 --- a/tests/projects/swig/java_c/src/example.i +++ b/tests/projects/swig/java_c/src/example.i @@ -3,3 +3,9 @@ extern int fact(int n); %} extern int fact(int n); + + + + + +%include "example2.i" diff --git a/tests/projects/swig/java_c/src/example2.i b/tests/projects/swig/java_c/src/example2.i new file mode 100644 index 000000000..a486c354a --- /dev/null +++ b/tests/projects/swig/java_c/src/example2.i @@ -0,0 +1,6 @@ + + +%inline %{ +#include "test.h" +%} +%include "test.h" diff --git a/tests/projects/swig/java_c/src/test.h b/tests/projects/swig/java_c/src/test.h new file mode 100644 index 000000000..da669d859 --- /dev/null +++ b/tests/projects/swig/java_c/src/test.h @@ -0,0 +1,3 @@ +#pragma once + +int fact2(int n); |
