MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaL_callmeta

Function luaL_callmeta

Source/Misc/lua/src/lua.c:10431–10438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10429
10430
10431LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
10432obj = abs_index(L, obj);
10433if (!luaL_getmetafield(L, obj, event)) /* no metafield? */
10434return 0;
10435lua_pushvalue(L, obj);
10436lua_call(L, 1, 1);
10437return 1;
10438}
10439
10440
10441LUALIB_API void (luaL_register) (lua_State *L, const char *libname,

Callers 2

luaL_tolstringFunction · 0.85
luaB_tostringFunction · 0.85

Calls 3

luaL_getmetafieldFunction · 0.85
lua_pushvalueFunction · 0.85
lua_callFunction · 0.85

Tested by

no test coverage detected