diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/eurephia_xml.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/eurephia_xml.h b/common/eurephia_xml.h index c955653..761ffda 100644 --- a/common/eurephia_xml.h +++ b/common/eurephia_xml.h @@ -27,7 +27,9 @@ char *xmlGetAttrValue(xmlAttr *properties, const char *key); xmlNode *xmlFindNode(xmlNode *node, const char *key); -#define xmlExtractContent(n) (char*) (((n != NULL) && (n->children != NULL)) ? n->children->content : NULL) +inline char *xmlExtractContent(xmlNode *n) { + return (char *) (((n != NULL) && (n->children != NULL)) ? n->children->content : NULL); +} inline char *xmlGetNodeContent(xmlNode *node, const char *key) { return xmlExtractContent(xmlFindNode(node, key)); } |