lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



The vibe I get from the tolua documentation it that is really all
about exporting *existing* C interfaces (which make no mention of lua
because they were not designed with lua in mind) rather than designed
a specific lua/C interface.  So it makes no allowances for
lua-specific types.

no. tolua can handle function that receives lua object as parameter.
for tolua 3.2, one should use lua_Object as the parameter type.

for tolua 4.0, LUA_VALUE.

for tolua 5.0, either lua_Object or LUA_VALUE.

in tolua4.0 and tolua5.0, these "types" in the .pkg works as a hint
for tolua to handle the parameter correctly.

-- waldemar