#include <memory_resource>#include <nk/value/span.hpp>#include <nk/value/value.hpp>Go to the source code of this file.
Classes | |
| struct | nk::runtime::LastWarn |
| Snapshot of the most-recent warning. More... | |
Functions | |
| void | nk::runtime::registerDiagnosticsRuntime (Engine &engine) |
| void | nk::runtime::error (Span< const Value > args) |
| Throw an Error (error(...)). | |
| void | nk::runtime::warning (Engine &engine, Span< const Value > args) |
| Engine-stateful warning (warning(...)). | |
| LastWarn | nk::runtime::lastwarnGet () |
| Read most-recent warning state ([msg, id] = lastwarn()). | |
| void | nk::runtime::lastwarnSet (const std::string &msg, const std::string &id) |
| Overwrite the most-recent warning state. | |
| Value | nk::runtime::mexception (Span< const Value > args, std::pmr::memory_resource *mr=nullptr) |
| Build an MException-like struct (me = MException(id, msg, args...)). | |
| void | nk::runtime::rethrowStruct (const Value &me) |
| Rethrow from an MException struct (rethrow(me) / throw(me)). | |
| void | nk::runtime::assertCond (Span< const Value > args) |
| Throw on a false condition (assert(...)). | |