MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaL_callmeta

Function luaL_callmeta

lua/lauxlib.c:267–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266
267LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
268 obj = abs_index(L, obj);
269 if (!luaL_getmetafield(L, obj, event)) /* no metafield? */
270 return 0;
271 lua_pushvalue(L, obj);
272 lua_call(L, 1, 1);
273 return 1;
274}
275
276
277LUALIB_API void (luaL_register) (lua_State *L, const char *libname,

Callers 2

luaB_tostringFunction · 0.85
luaL_checklstringFunction · 0.85

Calls 3

luaL_getmetafieldFunction · 0.85
lua_pushvalueFunction · 0.85
lua_callFunction · 0.85

Tested by

no test coverage detected