mrdocs::lua::Scope::getGlobal

Return a value from the global table if it exists.

Synopsis

Declared in <mrdocs/Support/Lua.hpp>

Expected<Value>
getGlobal(
    std::string_view key,
    std::source_location loc = source_location::current());

Return Value

The value if it exists, or an error.

Parameters

Name

Description

key

The key to get.

loc

The source location of the call site.

Created with MrDocs