| 713 | |
| 714 | |
| 715 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) { |
| 716 | obj = lua_absindex(L, obj); |
| 717 | if (!luaL_getmetafield(L, obj, event)) /* no metafield? */ |
| 718 | return 0; |
| 719 | lua_pushvalue(L, obj); |
| 720 | lua_call(L, 1, 1); |
| 721 | return 1; |
| 722 | } |
| 723 | |
| 724 | |
| 725 | LUALIB_API int luaL_len (lua_State *L, int idx) { |
no test coverage detected