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

Module global query 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 global query options.
loomc_string_view_t global_symbol
 Optional symbol selector.
loomc_module_global_kind_t kind
 Optional kind filter.

Detailed Description

Module global query options.

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

Field Documentation

◆ global_symbol

loomc_string_view_t loomc_module_global_query_options_t::global_symbol

Optional symbol selector.

Empty enumerates all matching globals. Both global and @global spellings are accepted.

◆ kind

loomc_module_global_kind_t loomc_module_global_query_options_t::kind

Optional kind filter.

LOOMC_MODULE_GLOBAL_KIND_UNKNOWN accepts every supported global kind.

◆ type

loomc_structure_type_t loomc_module_global_query_options_t::type

Structure type.

Must be LOOMC_STRUCTURE_TYPE_MODULE_GLOBAL_QUERY_OPTIONS when nonzero.


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