nk
1.0.0
C++ Numerical Computing Runtime
Toggle main menu visibility
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
8
namespace
nk {
9
12
13
class
Engine
;
14
}
15
16
namespace
nk::runtime {
17
18
void
registerEnvRuntime(Engine &engine);
19
27
36
void
setenv
(
Span<const Value>
args);
37
46
Value
getenv
(
Span<const Value>
args, std::pmr::memory_resource *mr =
nullptr
);
47
48
50
}
// namespace nk::runtime
nk::Engine
Definition
engine.hpp:32
nk::Span
Definition
span.hpp:11
nk::Value
Core MATLAB-compatible multidimensional array and scalar value type.
Definition
value.hpp:61
nk::runtime::getenv
Value getenv(Span< const Value > args, std::pmr::memory_resource *mr=nullptr)
Read an environment variable (val = getenv(name)).
nk::runtime::setenv
void setenv(Span< const Value > args)
Set / unset an environment variable (setenv(name, value)).
src
runtime
include
nk
runtime
env.hpp
Generated by
1.17.0