X-Git-Url: http://git.droids-corp.org/?p=protos%2Flibecoli.git;a=blobdiff_plain;f=include%2Fecoli_node_or.h;h=92492fbfc0c2e4bf0bb17702c02ba9306e9671ad;hp=db115b2a3f70ce75812a9c9ebfedfc941c2aed76;hb=HEAD;hpb=18d03456d96f7a086a2ccc82ce97fcf056848d90 diff --git a/include/ecoli_node_or.h b/include/ecoli_node_or.h index db115b2..92492fb 100644 --- a/include/ecoli_node_or.h +++ b/include/ecoli_node_or.h @@ -2,14 +2,20 @@ * Copyright 2016, Olivier MATZ */ +/** + * @defgroup nodes Nodes + * @{ + */ + #ifndef ECOLI_NODE_OR_ #define ECOLI_NODE_OR_ #include +#include -#define EC_NODE_OR(args...) __ec_node_or(args, EC_NODE_ENDLIST) +#define EC_NODE_OR(args...) __ec_node_or(args, EC_VA_END) -/* list must be terminated with EC_NODE_ENDLIST */ +/* list must be terminated with EC_VA_END */ /* all nodes given in the list will be freed when freeing this one */ /* avoid using this function directly, prefer the macro EC_NODE_OR() or * ec_node_or() + ec_node_or_add() */ @@ -20,5 +26,6 @@ struct ec_node *ec_node_or(const char *id); /* child is consumed */ int ec_node_or_add(struct ec_node *node, struct ec_node *child); - #endif + +/** @} */