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

Function lexerror

third-party/lua-5.2.4/src/llex.c:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

saveFunction · 0.70
luaX_syntaxerrorFunction · 0.70
inclinenumberFunction · 0.70
trydecpointFunction · 0.70
read_long_stringFunction · 0.70
escerrorFunction · 0.70
read_stringFunction · 0.70
llexFunction · 0.70

Calls 4

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

Tested by

no test coverage detected