the counterpart in oolua to luabind::object that can be unpack in lua

Issue #12 invalid
Qinghui Lai
created an issue

i tried to use Table in oolua library as a arg in c++ code that can unpack in lua . But only to find it can be a receivor of one function's return values.

code:
string packLua = "function mytest(func, arglist) f = _G[func] return f(unpack(arglist)) end";
testLuaManager->m_luaScript->run_chunk(packLua);
testLuaManager->m_luaScript->call("mytest",funcEntrance, arglist);

how can i construct a table in c++ using oolua which can be unpack in lua?

Comments (1)

  1. Log in to comment