MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / handle_luainit

Function handle_luainit

lua/lua.c:321–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

pmainFunction · 0.85

Calls 2

dofileFunction · 0.85
dostringFunction · 0.85

Tested by

no test coverage detected