summaryrefslogtreecommitdiff
path: root/tests/static_library_c++/src/interface.h
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-22 08:49:20 +0800
committerruki <[email protected]>2016-02-22 08:49:20 +0800
commitec6fd4eeca3fa468cffb25b472eb349c1fed06aa (patch)
tree3dbbb42e44310d8ae80ba2361a9f34bbbb90da13 /tests/static_library_c++/src/interface.h
parent762f3cd87615acbed339931bfb56c2b75c44cfa0 (diff)
modify tests script
Diffstat (limited to 'tests/static_library_c++/src/interface.h')
-rwxr-xr-xtests/static_library_c++/src/interface.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/static_library_c++/src/interface.h b/tests/static_library_c++/src/interface.h
new file mode 100755
index 000000000..4a41e9597
--- /dev/null
+++ b/tests/static_library_c++/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