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

Module serialization options. More...

#include <module.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
 Extension chain for future serialization options.
loomc_source_format_t format
 Output source format. Unknown selects textual .loom.
loomc_string_view_t identifier
 Identifier to attach to a returned source.
loomc_module_text_presentation_t text_presentation
 Presentation policy for textual .loom output.

Detailed Description

Module serialization options.

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

Field Documentation

◆ identifier

loomc_string_view_t loomc_module_serialize_options_t::identifier

Identifier to attach to a returned source.

Empty uses a format-specific default. Path and FILE* serialization do not interpret this field.

◆ type

loomc_structure_type_t loomc_module_serialize_options_t::type

Structure type.

Must be LOOMC_STRUCTURE_TYPE_MODULE_SERIALIZE_OPTIONS when nonzero.


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