summaryrefslogtreecommitdiffstats
path: root/doc/manual/example3/function.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual/example3/function.cfg')
-rw-r--r--doc/manual/example3/function.cfg16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/manual/example3/function.cfg b/doc/manual/example3/function.cfg
new file mode 100644
index 0000000..8ac334f
--- /dev/null
+++ b/doc/manual/example3/function.cfg
@@ -0,0 +1,16 @@
+Package testfunction
+Style AllStatic
+JavaClass TestFunction
+JavaOutputDir gensrc/java
+NativeOutputDir gensrc/native
+
+# strlen takes a string as argument
+ArgumentIsString strlen 0
+
+# strstr takes strings as arguments
+ArgumentIsString strstr 0 1
+# it also returns a string
+ReturnsString strstr
+
+CustomCCode /* Include string.h header */
+CustomCCode #include <string.h>