| 10429 | |
| 10430 | |
| 10431 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) { |
| 10432 | obj = abs_index(L, obj); |
| 10433 | if (!luaL_getmetafield(L, obj, event)) /* no metafield? */ |
| 10434 | return 0; |
| 10435 | lua_pushvalue(L, obj); |
| 10436 | lua_call(L, 1, 1); |
| 10437 | return 1; |
| 10438 | } |
| 10439 | |
| 10440 | |
| 10441 | LUALIB_API void (luaL_register) (lua_State *L, const char *libname, |
no test coverage detected