| 502 | |
| 503 | |
| 504 | static void newbox (lua_State *L) { |
| 505 | UBox *box = (UBox *)lua_newuserdatauv(L, sizeof(UBox), 0); |
| 506 | box->box = NULL; |
| 507 | box->bsize = 0; |
| 508 | if (luaL_newmetatable(L, "_UBOX*")) /* creating metatable? */ |
| 509 | luaL_setfuncs(L, boxmt, 0); /* set its metamethods */ |
| 510 | lua_setmetatable(L, -2); |
| 511 | } |
| 512 | |
| 513 | |
| 514 | /* |
no test coverage detected