MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / handle_luainit

Function handle_luainit

deps/lua/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.85

Calls 2

dofileFunction · 0.85
dostringFunction · 0.85

Tested by

no test coverage detected