awtk/lua/value.lua
2018-04-27 11:23:09 +08:00

25 lines
292 B
Lua

local v = Value.create()
local a = 100;
v:set_int8(100);
print(v:int())
v:set_str("hello");
print(v:str());
v:set_bool(true)
v:set_bool()
print(v:bool());
print(v.type);
print(ValueType)
print(ValueType.INVALID);
print(ValueType.BOOL);
print(ValueType.FLOAT);
v:destroy();
tk_quit();