MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaG_callerror

Function luaG_callerror

3rd/lua-5.4.3/src/ldebug.c:698–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696
697
698l_noret luaG_callerror (lua_State *L, const TValue *o) {
699 CallInfo *ci = L->ci;
700 const char *name = NULL; /* to avoid warnings */
701 const char *what = (isLua(ci)) ? funcnamefromcode(L, ci, &name) : NULL;
702 if (what != NULL) {
703 const char *t = luaT_objtypename(L, o);
704 luaG_runerror(L, "%s '%s' is not callable (a %s value)", what, name, t);
705 }
706 else
707 luaG_typeerror(L, o, "call");
708}
709
710
711l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what) {

Callers 1

luaD_tryfuncTMFunction · 0.85

Calls 4

funcnamefromcodeFunction · 0.85
luaT_objtypenameFunction · 0.85
luaG_runerrorFunction · 0.85
luaG_typeerrorFunction · 0.85

Tested by

no test coverage detected