aboutsummaryrefslogtreecommitdiffstats
path: root/doc/manual/example4/function.cfg
blob: 26eb3f5d5db2b6a3c380a3e86fb5f61e7f7d44ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Package testfunction
Style AllStatic
JavaClass TestFunction
JavaOutputDir   gensrc/java
NativeOutputDir gensrc/native

# The length of the returned ByteBuffer from custom_allocate is
# specified as the argument
ReturnValueCapacity custom_allocate {0}

# custom_free will only ever receive a direct Buffer
NioDirectOnly custom_free

# Include the function.h header in the generated glue code
CustomCCode #include "function.h"