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

Source load options for host file and path constructors. More...

#include <source.h>

Data Fields

loomc_structure_type_t type
 Structure type.
loomc_host_size_t structure_size
 Size of this structure in bytes.
const void * next
 Reserved extension chain. Must be NULL.
loomc_source_format_t format
 Loaded source format.
loomc_string_view_t identifier
 Stable identifier used in diagnostics and cache keys.

Detailed Description

Source load options for host file and path constructors.

Callers zero-initialize this descriptor, set type to LOOMC_STRUCTURE_TYPE_SOURCE_LOAD_OPTIONS, set structure_size to sizeof(loomc_source_load_options_t), and fill the requested fields.

Field Documentation

◆ identifier

loomc_string_view_t loomc_source_load_options_t::identifier

Stable identifier used in diagnostics and cache keys.

Empty uses no identifier for open-file loads and uses path for path loads.

◆ type

loomc_structure_type_t loomc_source_load_options_t::type

Structure type.

Must be LOOMC_STRUCTURE_TYPE_SOURCE_LOAD_OPTIONS when nonzero.


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