MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaG_typeerror

Function luaG_typeerror

deps/lua/src/ldebug.c:567–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565
566
567void luaG_typeerror (lua_State *L, const TValue *o, const char *op) {
568 const char *name = NULL;
569 const char *t = luaT_typenames[ttype(o)];
570 const char *kind = (isinstack(L->ci, o)) ?
571 getobjname(L, L->ci, cast_int(o - L->base), &name) :
572 NULL;
573 if (kind)
574 luaG_runerror(L, "attempt to %s %s " LUA_QS " (a %s value)",
575 op, kind, name, t);
576 else
577 luaG_runerror(L, "attempt to %s a %s value", op, t);
578}
579
580
581void 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