| 319 | |
| 320 | |
| 321 | static 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 | |
| 331 | struct Smain { |