MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaL_callmeta

Function luaL_callmeta

src/Chain/libraries/glua/lauxlib.cpp:2422–2429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2420
2421
2422LUALIB_API int luaL_callmeta(lua_State *L, int obj, const char *event) {
2423 obj = lua_absindex(L, obj);
2424 if (luaL_getmetafield(L, obj, event) == LUA_TNIL) /* no metafield? */
2425 return 0;
2426 lua_pushvalue(L, obj);
2427 lua_call(L, 1, 1);
2428 return 1;
2429}
2430
2431
2432LUALIB_API lua_Integer luaL_len(lua_State *L, int idx) {

Callers 6

msghandlerFunction · 0.85
luaL_tolstringFunction · 0.85
tojsonstring_with_nestedFunction · 0.85
msghandlerFunction · 0.85
msghandlerFunction · 0.85
msghandlerFunction · 0.85

Calls 3

lua_absindexFunction · 0.85
luaL_getmetafieldFunction · 0.85
lua_pushvalueFunction · 0.85

Tested by

no test coverage detected