module_entry.h¶
| File Path | engine/include/conjure/modules/module_entry.h |
| API ↗ | Writing a module |
Declaring a module.
Structs¶
| File | Description |
|---|---|
static_module_desc |
A module compiled into the host: its manifest as JSON text and its entry (or nullptr). The manager keeps a pointer to the descriptor, so it must outlive the manager; the macro below returns a function-local static. |
Type Aliases¶
module_entry_function¶
The entry signature module authors write; the C thunk adapts it to conjure_module_entry_fn.
Forward Declarations¶
module_context¶
Functions¶
Public¶
detail::entry_thunk¶
detail::entry_thunk¶template <auto EntryFunction> std::uint32_t entry_thunk(module_context *context);Adapts a C++ entry function to the C ABI.
detail::static_entry¶
detail::static_entry¶template <auto EntryFunction> [[nodiscard]] constexpr conjure_module_entry_fn static_entry() noexcept;The C entry for a C++ entry function, or nullptr for a manifest-only module.