summaryrefslogtreecommitdiff
path: root/tests/c++_static_library/src/interface.h
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-15 09:32:38 +0800
committerruki <[email protected]>2016-02-15 19:10:28 +0800
commitb78baf22ac0e25d2b18add81d42f733e0cd35620 (patch)
treed950c7c372227e300c8bfd780eea6371a4633692 /tests/c++_static_library/src/interface.h
parent202ceb6b071c7a1e95482dcb8bb7b48f24cd5bdc (diff)
add some tests
Diffstat (limited to 'tests/c++_static_library/src/interface.h')
-rwxr-xr-xtests/c++_static_library/src/interface.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/c++_static_library/src/interface.h b/tests/c++_static_library/src/interface.h
new file mode 100755
index 000000000..4a41e9597
--- /dev/null
+++ b/tests/c++_static_library/src/interface.h
@@ -0,0 +1,16 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*! calculate add(a, b)
+ *
+ * @param a the first argument
+ * @param b the second argument
+ *
+ * @return the result
+ */
+int add(int a, int b);
+
+#ifdef __cplusplus
+}
+#endif