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

Function lexerror

src/Chain/libraries/glua/llex.cpp:111–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111static void lexerror(LexState *ls, const char *msg, int token) {
112 msg = luaG_addinfo(ls->L, msg, ls->source, ls->linenumber);
113 lua_set_compile_error(ls->L, msg);
114 if (token)
115 luaO_pushfstring(ls->L, "%s near %s", msg, txtToken(ls, token));
116 luaD_throw(ls->L, LUA_ERRSYNTAX);
117}
118
119
120void luaX_syntaxerror(LexState *ls, const char *msg) {

Callers 8

saveFunction · 0.85
luaX_syntaxerrorFunction · 0.85
inclinenumberFunction · 0.85
trydecpointFunction · 0.85
read_long_stringFunction · 0.85
esccheckFunction · 0.85
read_stringFunction · 0.85
llexFunction · 0.85

Calls 5

luaG_addinfoFunction · 0.85
lua_set_compile_errorFunction · 0.85
luaO_pushfstringFunction · 0.85
txtTokenFunction · 0.85
luaD_throwFunction · 0.85

Tested by

no test coverage detected