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

Function luaG_typeerror

lua/ldebug.c:572–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570
571
572void luaG_typeerror (lua_State *L, const TValue *o, const char *op) {
573 const char *name = NULL;
574 const char *t = luaT_typenames[ttype(o)];
575 const char *kind = (isinstack(L->ci, o)) ?
576 getobjname(L, L->ci, cast_int(o - L->base), &name) :
577 NULL;
578 if (kind)
579 luaG_runerror(L, "attempt to %s %s " LUA_QS " (a %s value)",
580 op, kind, name, t);
581 else
582 luaG_runerror(L, "attempt to %s a %s value", op, t);
583}
584
585
586void luaG_concaterror (lua_State *L, StkId p1, StkId p2) {

Callers 6

luaV_gettableFunction · 0.85
luaV_settableFunction · 0.85
luaV_executeFunction · 0.85
luaG_concaterrorFunction · 0.85
luaG_aritherrorFunction · 0.85
tryfuncTMFunction · 0.85

Calls 3

isinstackFunction · 0.85
getobjnameFunction · 0.85
luaG_runerrorFunction · 0.85

Tested by

no test coverage detected