MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaL_callmeta

Function luaL_callmeta

extlibs/lua/src/lauxlib.c:837–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835
836
837LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
838 obj = lua_absindex(L, obj);
839 if (luaL_getmetafield(L, obj, event) == LUA_TNIL) /* no metafield? */
840 return 0;
841 lua_pushvalue(L, obj);
842 lua_call(L, 1, 1);
843 return 1;
844}
845
846
847LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {

Callers 4

msghandlerFunction · 0.85
luaL_tolstringFunction · 0.85
lua_lenFunction · 0.85
luaL_tolstringFunction · 0.85

Calls 3

luaL_getmetafieldFunction · 0.85
lua_pushvalueFunction · 0.85
lua_absindexFunction · 0.70

Tested by

no test coverage detected