nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
env.hpp
Go to the documentation of this file.
1// src/runtime/include/nk/runtime/language/commands/env.hpp
2#pragma once
3
4#include <memory_resource>
5#include <nk/value/span.hpp>
6#include <nk/value/value.hpp>
7
8namespace nk {
9
12
13class Engine;
14}
15
16namespace nk::runtime {
17
18void registerEnvRuntime(Engine &engine);
19
27
37
46Value getenv(Span<const Value> args, std::pmr::memory_resource *mr = nullptr);
47
48
50} // namespace nk::runtime
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value getenv(Span< const Value > args, std::pmr::memory_resource *mr=nullptr)
Read an environment variable (val = getenv(name)).
void setenv(Span< const Value > args)
Set / unset an environment variable (setenv(name, value)).