MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / check_match

Function check_match

Plugins/slua_unreal/External/lua/lparser.cpp:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119
120static void check_match (LexState *ls, int what, int who, int where) {
121 if (!testnext(ls, what)) {
122 if (where == ls->linenumber)
123 error_expected(ls, what);
124 else {
125 luaX_syntaxerror(ls, luaO_pushfstring(ls->L,
126 "%s expected (to close %s at line %d)",
127 luaX_token2str(ls, what), luaX_token2str(ls, who), where));
128 }
129 }
130}
131
132
133static TString *str_checkname (LexState *ls) {

Callers 9

constructorFunction · 0.85
bodyFunction · 0.85
funcargsFunction · 0.85
primaryexpFunction · 0.85
whilestatFunction · 0.85
repeatstatFunction · 0.85
forstatFunction · 0.85
ifstatFunction · 0.85
statementFunction · 0.85

Calls 5

testnextFunction · 0.85
error_expectedFunction · 0.85
luaX_syntaxerrorFunction · 0.85
luaO_pushfstringFunction · 0.85
luaX_token2strFunction · 0.85

Tested by

no test coverage detected