nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches

Process-environment builtins. More...

#include <memory_resource>
#include <nk/value/span.hpp>
#include <nk/value/value.hpp>

Go to the source code of this file.

Functions

void nk::runtime::registerEnvRuntime (Engine &engine)
void nk::runtime::setenv (Span< const Value > args)
 Set / unset an environment variable (setenv(name, value)).
Value nk::runtime::getenv (Span< const Value > args, std::pmr::memory_resource *mr=nullptr)
 Read an environment variable (val = getenv(name)).

Detailed Description

Process-environment builtins.

Thin wrappers over _putenv_s / ::setenv and the cross-platform envGet from nk/fs/branding.hpp. No Engine state required; getenv just needs a memory resource for its Value result.

Definition in file env.hpp.