MCPcopy Create free account
hub / github.com/crownengine/crown / luaG_typeerror

Function luaG_typeerror

3rdparty/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.70
luaV_settableFunction · 0.70
luaV_executeFunction · 0.70
luaG_concaterrorFunction · 0.70
luaG_aritherrorFunction · 0.70
tryfuncTMFunction · 0.70

Calls 3

getobjnameFunction · 0.85
isinstackFunction · 0.70
luaG_runerrorFunction · 0.70

Tested by

no test coverage detected