Skip to content

Engine → Modules

module_entry.h

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

using module_entry_function = module_entry_status (*)(module_context &context);

The entry signature module authors write; the C thunk adapts it to conjure_module_entry_fn.

Forward Declarations

module_context

class module_context;

Functions

Public

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

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.