MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaL_callmeta

Function luaL_callmeta

other_src/lua/src/lauxlib.cpp:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243
244LUALIB_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
254LUALIB_API void (luaL_register) (lua_State *L, const char *libname,

Callers 1

luaB_tostringFunction · 0.70

Calls 3

luaL_getmetafieldFunction · 0.70
lua_pushvalueFunction · 0.70
lua_callFunction · 0.70

Tested by

no test coverage detected