mirror of
https://github.com/mmueller41/mxtasking.git
synced 2026-01-21 12:42:57 +01:00
Added setter method for environment.
This commit is contained in:
@@ -18,7 +18,9 @@ public:
|
||||
Environment() = default;
|
||||
|
||||
Libc::Env *getenv() { return _env; }
|
||||
void setenv(Libc::Env *env) { Environment::get_instance().setenv(env); }
|
||||
void setenv(Libc::Env *env) { _env = env; }
|
||||
|
||||
static void setenv(Libc::Env *env) { Environment::get_instance().setenv(env); }
|
||||
|
||||
static Environment& get_instance() { static Environment env;
|
||||
return env;
|
||||
|
||||
Reference in New Issue
Block a user