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

Function luaX_init

third-party/lua-5.5.0/src/llex.c:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74
75void luaX_init (lua_State *L) {
76 int i;
77 TString *e = luaS_newliteral(L, LUA_ENV); /* create env name */
78 luaC_fix(L, obj2gco(e)); /* never collect this name */
79 for (i=0; i<NUM_RESERVED; i++) {
80 TString *ts = luaS_new(L, luaX_tokens[i]);
81 luaC_fix(L, obj2gco(ts)); /* reserved words are never collected */
82 ts->extra = cast_byte(i+1); /* reserved word */
83 }
84}
85
86
87const char *luaX_token2str (LexState *ls, int token) {

Callers 1

f_luaopenFunction · 0.70

Calls 2

luaC_fixFunction · 0.70
luaS_newFunction · 0.70

Tested by

no test coverage detected