MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaL_callmeta

Function luaL_callmeta

3rd/lua-5.4.3/src/lauxlib.c:861–868  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859
860
861LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
862 obj = lua_absindex(L, obj);
863 if (luaL_getmetafield(L, obj, event) == LUA_TNIL) /* no metafield? */
864 return 0;
865 lua_pushvalue(L, obj);
866 lua_call(L, 1, 1);
867 return 1;
868}
869
870
871LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {

Callers 2

msghandlerFunction · 0.85
luaL_tolstringFunction · 0.85

Calls 3

lua_absindexFunction · 0.85
luaL_getmetafieldFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected