| 321 | |
| 322 | |
| 323 | static 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 | |
| 333 | struct Smain { |