MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaL_callmeta

Function luaL_callmeta

ThirdParty/lua/lua/lauxlib.c:726–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724
725
726LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
727 obj = lua_absindex(L, obj);
728 if (luaL_getmetafield(L, obj, event) == LUA_TNIL) /* no metafield? */
729 return 0;
730 lua_pushvalue(L, obj);
731 lua_call(L, 1, 1);
732 return 1;
733}
734
735
736LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {

Callers 1

luaL_tolstringFunction · 0.85

Calls 3

lua_absindexFunction · 0.85
luaL_getmetafieldFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected