Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_module_interop_view_t Struct Reference

Read-only native projection of a structurally verified LoomC module. More...

#include <interop.h>

Data Fields

const loom_module_t * module
 Native module owned by the public module handle.
const loom_source_table_resolver_t * source_table
 Exact source snapshots indexed by native module source ID.
loom_type_formatter_t type_formatter
 Formats native types using the module's strings and descriptors without requiring consumers to link the native text printer.

Detailed Description

Read-only native projection of a structurally verified LoomC module.

Lifetime
All members borrow from the public module that produced the view and remain valid until that module is mutated or released. Native consumers may inspect but must not mutate the projected module or source table.

Field Documentation

◆ type_formatter

loom_type_formatter_t loomc_module_interop_view_t::type_formatter

Formats native types using the module's strings and descriptors without requiring consumers to link the native text printer.

The callback is non-NULL on successful projection, writes synchronously to the supplied stream, and propagates output failures. It uses diagnostic type spelling, including raw register identities rather than target assembly aliases.


The documentation for this struct was generated from the following file: