summaryrefslogtreecommitdiffstats
path: root/doc/manual/example3/function.cfg
blob: 8ac334fe22043023e2ca837c49bb0e2067cf3fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>