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

Function luaX_setinput

Plugins/slua_unreal/External/lua/llex.cpp:159–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157
158
159void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source,
160 int firstchar) {
161 ls->t.token = 0;
162 ls->L = L;
163 ls->current = firstchar;
164 ls->lookahead.token = TK_EOS; /* no look-ahead token */
165 ls->z = z;
166 ls->fs = NULL;
167 ls->linenumber = 1;
168 ls->lastline = 1;
169 ls->source = source;
170 ls->envn = luaS_newliteral(L, LUA_ENV); /* get env name */
171 luaZ_resizebuffer(ls->L, ls->buff, LUA_MINBUFFER); /* initialize buffer */
172}
173
174
175

Callers 1

luaY_parserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected