| 217 | |
| 218 | |
| 219 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) { |
| 220 | obj = abs_index(L, obj); |
| 221 | if (!luaL_getmetafield(L, obj, event)) /* no metafield? */ |
| 222 | return 0; |
| 223 | lua_pushvalue(L, obj); |
| 224 | lua_call(L, 1, 1); |
| 225 | return 1; |
| 226 | } |
| 227 | |
| 228 | |
| 229 | LUALIB_API void (luaL_register) (lua_State *L, const char *libname, |
no test coverage detected