MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / luaX_token2str

Function luaX_token2str

other_src/lua/src/llex.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77
78const char *luaX_token2str (LexState *ls, int token) {
79 if (token < FIRST_RESERVED) {
80 lua_assert(token == cast(unsigned char, token));
81 return (iscntrl(token)) ? luaO_pushfstring(ls->L, "char(%d)", token) :
82 luaO_pushfstring(ls->L, "%c", token);
83 }
84 else
85 return luaX_tokens[token-FIRST_RESERVED];
86}
87
88
89static const char *txtToken (LexState *ls, int token) {

Callers 3

txtTokenFunction · 0.70
error_expectedFunction · 0.70
check_matchFunction · 0.70

Calls 1

luaO_pushfstringFunction · 0.70

Tested by

no test coverage detected