Stick names in own config list
This commit is contained in:
@@ -30,18 +30,26 @@
|
||||
|
||||
/* public definitions */
|
||||
#define ENUM(label) _yaml_attribute("enum:" _yaml_note(label))
|
||||
#define SKIP _yaml_attribute("skip:true")
|
||||
#define USE_IDX _yaml_attribute("idx:true")
|
||||
#define FUNC(name) _yaml_attribute("func:" _yaml_note(name))
|
||||
#define SKIP _yaml_attribute("skip:true")
|
||||
#define USE_IDX _yaml_attribute("idx:true")
|
||||
#define FUNC(name) _yaml_attribute("func:" _yaml_note(name))
|
||||
#define NAME(label) _yaml_attribute("name:" _yaml_note(label))
|
||||
|
||||
#define CUST(read,write) \
|
||||
_yaml_attribute("read:" _yaml_note(read)) \
|
||||
_yaml_attribute("write:" _yaml_note(write))
|
||||
#define CUST(read, write) \
|
||||
_yaml_attribute("read:" _yaml_note(read)) \
|
||||
_yaml_attribute("write:" _yaml_note(write))
|
||||
|
||||
#define ARRAY(elmt_size,elmt_type,fcn) \
|
||||
_yaml_attribute("array:" _yaml_note(elmt_size) "|" \
|
||||
_yaml_note(elmt_type) "|" _yaml_note(fcn))
|
||||
#define ARRAY(elmt_size, elmt_type, fcn) \
|
||||
_yaml_attribute("array:" _yaml_note(elmt_size) "|" _yaml_note( \
|
||||
elmt_type) "|" _yaml_note(fcn))
|
||||
|
||||
#define CUST_ATTR(tag, read, write) \
|
||||
int _dummy_##tag[0] _yaml_attribute("raw:YAML_CUSTOM(" _yaml_note( \
|
||||
#tag) "," _yaml_note(read) "," _yaml_note(write) ")")
|
||||
|
||||
#define CUST_ARRAY(tag, elmt_type, fcn) \
|
||||
int _dummy_##tag[0] _yaml_attribute("raw:YAML_ARRAY(" _yaml_note( \
|
||||
#tag) ", 0, 4, " _yaml_note(elmt_type) ", " _yaml_note(fcn) ")")
|
||||
|
||||
#else
|
||||
|
||||
@@ -50,8 +58,10 @@
|
||||
#define USE_IDX
|
||||
#define FUNC(name)
|
||||
#define NAME(label)
|
||||
#define CUST(read,write)
|
||||
#define ARRAY(elmt_size,elmt_type,fcn)
|
||||
#define CUST(read, write)
|
||||
#define ARRAY(elmt_size, elmt_type, fcn)
|
||||
#define CUST_ATTR(tag, read, write)
|
||||
#define CUST_ARRAY(tag, elmt_type, fcn)
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user