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

Function l_errfunc

lua/ltypes.c:2087–2094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2085}
2086
2087static int l_errfunc(lua_State *lua) {
2088 logmsg(LOGMSG_DEBUG, "%s\n", lua_tostring(lua, -1));
2089 lua_getglobal(lua, "debug");
2090 lua_getfield(lua, -1, "traceback");
2091 lua_pcall(lua, 0, 1, 0);
2092 logmsg(LOGMSG_DEBUG, "%s\n", lua_tostring(lua, -1));
2093 return 1;
2094}
2095
2096/* Convenience routines */
2097void luabb_pushinteger(lua_State *lua, long long ival) {

Callers

nothing calls this directly

Calls 3

lua_getfieldFunction · 0.85
lua_pcallFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected