summaryrefslogtreecommitdiff
path: root/tests/projects/other/native_module/modules/binary/bar/src/sub.cpp
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-02 21:01:59 +0800
committerruki <[email protected]>2024-04-02 21:01:59 +0800
commit6953ca0c43ff4cb08fc9f76eabb5415a892e5167 (patch)
tree5b3a9155c882574ac00de5106a691f27a7b0957a /tests/projects/other/native_module/modules/binary/bar/src/sub.cpp
parent8c9cd4bc8ce80bbf0c2dc56424c3e629c902dbba (diff)
add multiple interfaces for bar
Diffstat (limited to 'tests/projects/other/native_module/modules/binary/bar/src/sub.cpp')
-rw-r--r--tests/projects/other/native_module/modules/binary/bar/src/sub.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/projects/other/native_module/modules/binary/bar/src/sub.cpp b/tests/projects/other/native_module/modules/binary/bar/src/sub.cpp
new file mode 100644
index 000000000..524930500
--- /dev/null
+++ b/tests/projects/other/native_module/modules/binary/bar/src/sub.cpp
@@ -0,0 +1,10 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char** argv) {
+ int a = atoi(argv[1]);
+ int b = atoi(argv[2]);
+ printf("%s\n", a - b);
+ return 0;
+}
+