MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaX_lexerror

Function luaX_lexerror

lua/llex.c:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 9

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
codeblobFunction · 0.85
enterlevelFunction · 0.85

Calls 5

luaO_chunkidFunction · 0.85
getstrFunction · 0.85
luaO_pushfstringFunction · 0.85
txtTokenFunction · 0.85
luaD_throwFunction · 0.85

Tested by

no test coverage detected