|
Loom C API
Public Loom compiler C API
|
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. | |
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.
| 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.
| loomc_structure_type_t loomc_source_load_options_t::type |
Structure type.
Must be LOOMC_STRUCTURE_TYPE_SOURCE_LOAD_OPTIONS when nonzero.