summaryrefslogtreecommitdiff
path: root/gtest/script/call_cfunction_get_value.lua
blob: 044a036310ca87408e87d8efdeab3c53064f3562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local data = TSG.data

local value = TSG.get_value()

local retvalue = nil
print(type(value))
for k, v in pairs(value) do
	if not retvalue then
		retvalue = string.format("%s:%s", tostring(k), tostring(v))
	else
		retvalue = string.format("%s,%s:%s", retvalue, tostring(k), tostring(v))
	end
end

return string.len(retvalue), retvalue