* Wrap functions and add them to the table on the top of the stack. */
| 1306 | * Wrap functions and add them to the table on the top of the stack. |
| 1307 | */ |
| 1308 | void LuaWrapper::SetFunctionWrappers(lua_State *state, const FunctionReg *reg) |
| 1309 | { |
| 1310 | int base = lua_gettop(state); |
| 1311 | |
| 1312 | for (; reg && reg->name; ++reg) |
| 1313 | AddMethodWrapper(state, 0, base, reg->name, reg->identity); |
| 1314 | } |
| 1315 | |
| 1316 | /** |
| 1317 | * Add fields in the array to the UPVAL_FIELDTABLE candidates on the stack. |
nothing calls this directly
no test coverage detected