Cthulhu  0.2.10
Cthulhu compiler collection
reflect.c File Reference
#include "common.h"
#include "config/config.inc"
Include dependency graph for reflect.c:

Go to the source code of this file.

Macros

#define CFG_TYPE(id, name)   [id] = (name),
 
#define CFG_ARG(id, name, prefix)   [id] = (name),
 
#define CFG_ARG(id, name, prefix)   [id] = (prefix),
 

Functions

STA_DECL cfg_type_t cfg_get_type (const cfg_field_t *field)
 get the type of a configuration field More...
 
STA_DECL const cfg_info_tcfg_get_info (const cfg_field_t *field)
 get the information about a configuration field More...
 
STA_DECL const cfg_info_tcfg_group_info (const cfg_group_t *config)
 get the information about a configuration group More...
 
STA_DECL typevec_tcfg_get_groups (const cfg_group_t *config)
 get all subgroups in a configuration group More...
 
STA_DECL vector_tcfg_get_fields (const cfg_group_t *config)
 get all fields in a configuration group More...
 
STA_DECL const cfg_int_tcfg_int_info (const cfg_field_t *field)
 get the information about an integer field More...
 
STA_DECL bool cfg_bool_info (const cfg_field_t *field)
 get the information about a yes/no field More...
 
STA_DECL const char * cfg_string_info (const cfg_field_t *field)
 get the information about a string field More...
 
STA_DECL const vector_tcfg_vector_info (const cfg_field_t *field)
 get the information about a vector field More...
 
STA_DECL const cfg_enum_tcfg_enum_info (const cfg_field_t *field)
 get the information about a choice field More...
 
STA_DECL const cfg_enum_tcfg_flags_info (const cfg_field_t *field)
 get the information about a flags field More...
 
STA_DECL const char * cfg_type_string (cfg_type_t type)
 get the name of a configuration type More...
 
STA_DECL const char * cfg_arg_string (arg_style_t style)
 get the name of an argument style More...
 
STA_DECL const char * cfg_arg_prefix (arg_style_t style)
 get the prefix for an argument style More...
 
STA_DECL int cfg_int_value (const cfg_field_t *field)
 access More...
 
STA_DECL bool cfg_bool_value (const cfg_field_t *field)
 get the current boolean value of a configuration field More...
 
STA_DECL const char * cfg_string_value (const cfg_field_t *field)
 get the current string value of a configuration field More...
 
STA_DECL vector_tcfg_vector_value (const cfg_field_t *field)
 get the current vector value of a configuration field More...
 
STA_DECL size_t cfg_enum_value (const cfg_field_t *field)
 get the current enum value of a configuration field More...
 
STA_DECL size_t cfg_flags_value (const cfg_field_t *field)
 get the current flags value of a configuration field More...
 

Macro Definition Documentation

◆ CFG_ARG [1/2]

#define CFG_ARG (   id,
  name,
  prefix 
)    [id] = (name),

◆ CFG_ARG [2/2]

#define CFG_ARG (   id,
  name,
  prefix 
)    [id] = (prefix),

◆ CFG_TYPE

#define CFG_TYPE (   id,
  name 
)    [id] = (name),