| 48 | } |
| 49 | |
| 50 | static void lua_rawsetp(lua_State *L, int idx, const void *p) { |
| 51 | lua_pushlightuserdata(L, (void*)p); |
| 52 | lua_insert(L, -2); |
| 53 | lua_rawset(L, lpb_relindex(idx, 1)); |
| 54 | } |
| 55 | |
| 56 | #ifndef luaL_newlib /* not LuaJIT 2.1 */ |
| 57 | #define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l)) |
no test coverage detected