Map function * It assigns a function into the current module(or class) */
| 333 | * It assigns a function into the current module(or class) |
| 334 | */ |
| 335 | void tolua_function(lua_State* L, const char* name, lua_CFunction func) { |
| 336 | lua_pushstring(L, name); |
| 337 | lua_pushcfunction(L, func); |
| 338 | lua_rawset(L, -3); |
| 339 | } |
| 340 | |
| 341 | void tolua_call(lua_State* L, tolua_mt index, lua_CFunction func) { |
| 342 | lua_pushcfunction(L, func); |
no test coverage detected