MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaX_lexerror

Function luaX_lexerror

Source/Misc/lua/src/lua.c:6815–6822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6813
6814
6815void luaX_lexerror (LexState *ls, const char *msg, int token) {
6816char buff[MAXSRC];
6817luaO_chunkid(buff, getstr(ls->source), MAXSRC);
6818msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg);
6819if (token)
6820luaO_pushfstring(ls->L, "%s near " LUA_QS, msg, txtToken(ls, token));
6821luaD_throw(ls->L, LUA_ERRSYNTAX);
6822}
6823
6824
6825void 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.85
luaO_pushfstringFunction · 0.85
txtTokenFunction · 0.85
luaD_throwFunction · 0.85

Tested by

no test coverage detected