-------------------------------------------------------------------------*\ * Try factory \*-------------------------------------------------------------------------*/
| 35 | * Try factory |
| 36 | \*-------------------------------------------------------------------------*/ |
| 37 | static void wrap(lua_State *L) { |
| 38 | lua_createtable(L, 1, 0); |
| 39 | lua_pushvalue(L, -2); |
| 40 | lua_rawseti(L, -2, 1); |
| 41 | lua_pushvalue(L, lua_upvalueindex(1)); |
| 42 | lua_setmetatable(L, -2); |
| 43 | } |
| 44 | |
| 45 | static int finalize(lua_State *L) { |
| 46 | if (!lua_toboolean(L, 1)) { |
no test coverage detected