| 569 | |
| 570 | |
| 571 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) { |
| 572 | obj = lua_absindex(L, obj); |
| 573 | if (!luaL_getmetafield(L, obj, event)) /* no metafield? */ |
| 574 | return 0; |
| 575 | lua_pushvalue(L, obj); |
| 576 | lua_call(L, 1, 1); |
| 577 | return 1; |
| 578 | } |
| 579 | |
| 580 | |
| 581 | LUALIB_API int luaL_len (lua_State *L, int idx) { |
no test coverage detected