MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_callmeta

Function luaL_callmeta

third-party/lua-5.2.4/src/lauxlib.c:715–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

713
714
715LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
716 obj = lua_absindex(L, obj);
717 if (!luaL_getmetafield(L, obj, event)) /* no metafield? */
718 return 0;
719 lua_pushvalue(L, obj);
720 lua_call(L, 1, 1);
721 return 1;
722}
723
724
725LUALIB_API int luaL_len (lua_State *L, int idx) {

Callers 2

tracebackFunction · 0.70
luaL_tolstringFunction · 0.70

Calls 4

lua_absindexFunction · 0.70
luaL_getmetafieldFunction · 0.70
lua_pushvalueFunction · 0.70
lua_callFunction · 0.50

Tested by

no test coverage detected