| 76 | |
| 77 | |
| 78 | static int os_getenv (lua_State *L) { |
| 79 | #if defined(LUA_NO_GETENV) // DEFOLD |
| 80 | lua_pushnil(L); // DEFOLD |
| 81 | #else |
| 82 | lua_pushstring(L, getenv(luaL_checkstring(L, 1))); /* if NULL push nil */ |
| 83 | #endif |
| 84 | return 1; |
| 85 | } |
| 86 | |
| 87 | |
| 88 | static int os_clock (lua_State *L) { |
nothing calls this directly
no test coverage detected