| 514 | |
| 515 | |
| 516 | static void newbox (lua_State *L) { |
| 517 | UBox *box = (UBox *)lua_newuserdatauv(L, sizeof(UBox), 0); |
| 518 | box->box = NULL; |
| 519 | box->bsize = 0; |
| 520 | if (luaL_newmetatable(L, "_UBOX*")) /* creating metatable? */ |
| 521 | luaL_setfuncs(L, boxmt, 0); /* set its metamethods */ |
| 522 | lua_setmetatable(L, -2); |
| 523 | } |
| 524 | |
| 525 | |
| 526 | /* |
no test coverage detected