| 265 | |
| 266 | |
| 267 | LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) { |
| 268 | obj = abs_index(L, obj); |
| 269 | if (!luaL_getmetafield(L, obj, event)) /* no metafield? */ |
| 270 | return 0; |
| 271 | lua_pushvalue(L, obj); |
| 272 | lua_call(L, 1, 1); |
| 273 | return 1; |
| 274 | } |
| 275 | |
| 276 | |
| 277 | LUALIB_API void (luaL_register) (lua_State *L, const char *libname, |
no test coverage detected