summaryrefslogtreecommitdiff
path: root/gtest/script/call_cfunction.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gtest/script/call_cfunction.lua')
-rw-r--r--gtest/script/call_cfunction.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtest/script/call_cfunction.lua b/gtest/script/call_cfunction.lua
new file mode 100644
index 0000000..4315297
--- /dev/null
+++ b/gtest/script/call_cfunction.lua
@@ -0,0 +1,6 @@
+local data = TSG.data
+
+local str = TSG.get.get_hello()
+
+local ret = TSG.set.set_world(str)
+return string.len(ret), ret \ No newline at end of file