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

Function luaX_init

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

Source from the content-addressed store, hash-verified

63
64
65void luaX_init (lua_State *L) {
66 int i;
67 for (i=0; i<NUM_RESERVED; i++) {
68 TString *ts = luaS_new(L, luaX_tokens[i]);
69 luaS_fix(ts); /* reserved words are never collected */
70 ts->tsv.extra = cast_byte(i+1); /* reserved word */
71 }
72}
73
74
75const char *luaX_token2str (LexState *ls, int token) {

Callers 1

f_luaopenFunction · 0.70

Calls 1

luaS_newFunction · 0.70

Tested by

no test coverage detected