* Create a closure invoking the given function, and add it to the field table. */
| 1296 | * Create a closure invoking the given function, and add it to the field table. |
| 1297 | */ |
| 1298 | static void AddMethodWrapper(lua_State *state, int meta_idx, int field_idx, |
| 1299 | const char *name, function_identity_base *fun) |
| 1300 | { |
| 1301 | PushFunctionWrapper(state, meta_idx, name, fun); |
| 1302 | lua_setfield(state, field_idx, name); |
| 1303 | } |
| 1304 | |
| 1305 | /** |
| 1306 | * Wrap functions and add them to the table on the top of the stack. |
no test coverage detected