welder 0.1.0
Bindings for annotated C++ types, from C++26 reflection
Loading...
Searching...
No Matches
welder::rods::luabridge::rod::module_scope Struct Reference

A copyable handle to a welded module (or submodule) table: the borrowed Lua state plus the namespace path from the global table. More...

#include <welder/rods/lua/luabridge/rod.hpp>

Public Attributes

lua_State * L {nullptr}
 The borrowed Lua state.
std::vector< std::string > path {}
 Namespace segments under _G.

Detailed Description

A copyable handle to a welded module (or submodule) table: the borrowed Lua state plus the namespace path from the global table.

LuaBridge3's registrar is move-based and single-active, which does not match the driver's stable-handle model, so instead of holding a live registrar this names where* the module lives and every emission primitive re-opens it via getGlobalNamespace(L).beginNamespace(path…).

See also
the file overview.

Definition at line 149 of file rod.hpp.

Member Data Documentation

◆ L

lua_State* welder::rods::luabridge::rod::module_scope::L {nullptr}

◆ path

std::vector<std::string> welder::rods::luabridge::rod::module_scope::path {}

The documentation for this struct was generated from the following file:
  • src/welder/rods/lua/luabridge/rod.hpp