From 02417a11bf9658cef2c4d6820d3cacdf0e50ba2e Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sat, 5 Mar 2022 20:25:01 +0000 Subject: [PATCH] Feature: Added report XML helper for boolean values --- src/reportxml_helper.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reportxml_helper.h b/src/reportxml_helper.h index a9f12a61..772a5173 100644 --- a/src/reportxml_helper.h +++ b/src/reportxml_helper.h @@ -17,6 +17,7 @@ void reportxml_helper_add_value(reportxml_node_t *parent, const char *type, cons #define reportxml_helper_add_value_string(parent,member,str) reportxml_helper_add_value((parent), "string", (member), (str)) #define reportxml_helper_add_value_enum(parent,member,str) reportxml_helper_add_value((parent), "enum", (member), (str)) +#define reportxml_helper_add_value_boolean(parent,member,value) reportxml_helper_add_value((parent), "boolean", (member), (value) ? "true" : "false") void reportxml_helper_add_value_int(reportxml_node_t *parent, const char *member, long long int val); void reportxml_helper_add_text(reportxml_node_t *parent, const char *definition, const char *text);