| 242 | |
| 243 | |
| 244 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) { |
| 245 | obj = abs_index(L, obj); |
| 246 | if (!luaL_getmetafield(L, obj, event)) /* no metafield? */ |
| 247 | return 0; |
| 248 | lua_pushvalue(L, obj); |
| 249 | lua_call(L, 1, 1); |
| 250 | return 1; |
| 251 | } |
| 252 | |
| 253 | |
| 254 | LUALIB_API void (luaL_register) (lua_State *L, const char *libname, |
no test coverage detected