MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaX_lexerror

Function luaX_lexerror

third-party/lua-5.1.5/src/llex.c:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101
102void luaX_lexerror (LexState *ls, const char *msg, int token) {
103 char buff[MAXSRC];
104 luaO_chunkid(buff, getstr(ls->source), MAXSRC);
105 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg);
106 if (token)
107 luaO_pushfstring(ls->L, "%s near " LUA_QS, msg, txtToken(ls, token));
108 luaD_throw(ls->L, LUA_ERRSYNTAX);
109}
110
111
112void luaX_syntaxerror (LexState *ls, const char *msg) {

Callers 8

saveFunction · 0.85
luaX_syntaxerrorFunction · 0.85
trydecpointFunction · 0.85
read_long_stringFunction · 0.85
read_stringFunction · 0.85
llexFunction · 0.85
errorlimitFunction · 0.85
enterlevelFunction · 0.85

Calls 4

luaO_chunkidFunction · 0.70
luaO_pushfstringFunction · 0.70
txtTokenFunction · 0.70
luaD_throwFunction · 0.70

Tested by

no test coverage detected