MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaL_callmeta

Function luaL_callmeta

freebsd/contrib/openzfs/module/lua/lauxlib.c:571–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569
570
571LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
572 obj = lua_absindex(L, obj);
573 if (!luaL_getmetafield(L, obj, event)) /* no metafield? */
574 return 0;
575 lua_pushvalue(L, obj);
576 lua_call(L, 1, 1);
577 return 1;
578}
579
580
581LUALIB_API int luaL_len (lua_State *L, int idx) {

Callers 1

luaL_tolstringFunction · 0.70

Calls 4

lua_absindexFunction · 0.85
lua_callFunction · 0.85
luaL_getmetafieldFunction · 0.70
lua_pushvalueFunction · 0.70

Tested by

no test coverage detected