MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaG_runerror

Function luaG_runerror

src/Chain/libraries/glua/ldebug.cpp:659–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657
658
659void luaG_runerror(lua_State *L, const char *fmt, ...) {
660 CallInfo *ci = L->ci;
661 const char *msg;
662 va_list argp;
663 va_start(argp, fmt);
664 msg = luaO_pushvfstring(L, fmt, argp); /* format message */
665 va_end(argp);
666 if (isLua(ci)) /* if Lua function, add source:line information */
667 luaG_addinfo(L, msg, ci_func(ci)->p->source, currentline(ci));
668 global_glua_chain_api->throw_exception(L, THINKYOUNG_API_LVM_ERROR, msg);
669 luaG_errormsg(L, msg);
670}
671
672
673void luaG_traceexec(lua_State *L) {

Callers 15

luaG_typeerrorFunction · 0.85
luaG_tointerrorFunction · 0.85
luaG_ordererrorFunction · 0.85
luaD_growstackFunction · 0.85
stackerrorFunction · 0.85
lua_yieldkFunction · 0.85
luaV_finishgetFunction · 0.85
luaV_finishsetFunction · 0.85
luaV_concatFunction · 0.85
luaV_divFunction · 0.85
luaV_modFunction · 0.85
vmcaseFunction · 0.85

Calls 5

luaO_pushvfstringFunction · 0.85
luaG_addinfoFunction · 0.85
currentlineFunction · 0.85
luaG_errormsgFunction · 0.85
throw_exceptionMethod · 0.45

Tested by

no test coverage detected