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

Function luaL_callmeta

third-party/lua-5.5.0/src/lauxlib.c:900–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898
899
900LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
901 obj = lua_absindex(L, obj);
902 if (luaL_getmetafield(L, obj, event) == LUA_TNIL) /* no metafield? */
903 return 0;
904 lua_pushvalue(L, obj);
905 lua_call(L, 1, 1);
906 return 1;
907}
908
909
910LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {

Callers 2

msghandlerFunction · 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