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

Function handle_luainit

third-party/lua-5.1.5/src/lua.c:323–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322
323static int handle_luainit (lua_State *L) {
324 const char *init = getenv(LUA_INIT);
325 if (init == NULL) return 0; /* status OK */
326 else if (init[0] == '@')
327 return dofile(L, init+1);
328 else
329 return dostring(L, init, "=" LUA_INIT);
330}
331
332
333struct Smain {

Callers 1

pmainFunction · 0.70

Calls 2

dofileFunction · 0.70
dostringFunction · 0.70

Tested by

no test coverage detected