MCPcopy Create free account
hub / github.com/defold/defold / os_getenv

Function os_getenv

engine/lua/src/lua/loslib.c:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77
78static 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
88static int os_clock (lua_State *L) {

Callers

nothing calls this directly

Calls 3

lua_pushnilFunction · 0.85
lua_pushstringFunction · 0.85
getenvFunction · 0.85

Tested by

no test coverage detected