| 1401 | } |
| 1402 | |
| 1403 | static int Lpb_defaults(lua_State *L) { |
| 1404 | lpb_State *LS = lpb_lstate(L); |
| 1405 | const pb_Type *t = lpb_type(LS, lpb_checkslice(L, 1)); |
| 1406 | int clear = lua_toboolean(L, 2); |
| 1407 | if (t == NULL) luaL_argerror(L, 1, "type not found"); |
| 1408 | lpb_pushdefmeta(L, LS, t); |
| 1409 | if (clear) lpb_cleardefmeta(L, LS, t); |
| 1410 | return 1; |
| 1411 | } |
| 1412 | |
| 1413 | static int Lpb_hook(lua_State *L) { |
| 1414 | lpb_State *LS = lpb_lstate(L); |
nothing calls this directly
no test coverage detected