MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaG_typeerror

Function luaG_typeerror

Source/Misc/lua/src/lua.c:5075–5086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5073
5074
5075void luaG_typeerror (lua_State *L, const TValue *o, const char *op) {
5076const char *name = NULL;
5077const char *t = luaT_typenames[ttype(o)];
5078const char *kind = (isinstack(L->ci, o)) ?
5079getobjname(L, L->ci, cast_int(o - L->base), &name) :
5080NULL;
5081if (kind)
5082luaG_runerror(L, "attempt to %s %s " LUA_QS " (a %s value)",
5083op, kind, name, t);
5084else
5085luaG_runerror(L, "attempt to %s a %s value", op, t);
5086}
5087
5088
5089void luaG_concaterror (lua_State *L, StkId p1, StkId p2) {

Callers 6

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

Calls 3

isinstackFunction · 0.85
getobjnameFunction · 0.85
luaG_runerrorFunction · 0.85

Tested by

no test coverage detected