summaryrefslogtreecommitdiffhomepage
path: root/ast.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-26 22:03:16 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-26 22:03:16 +0200
commit087b6c77a1e2cbb014bb19a4bed78a04336d51dc (patch)
tree3389bce95691f46cf4da11333f345207e0e72b24 /ast.h
parent486ff859ced13c2454e7d12788069e5db30b618d (diff)
lib: implement '%J' printf format
The `%J` format allows outputting values as valid JSON string. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index c6d5aeb..92e021e 100644
--- a/ast.h
+++ b/ast.h
@@ -27,6 +27,8 @@
#include <json-c/json.h>
#endif
+#define JSON_C_TO_STRING_STRICT (1<<31)
+
#define UT_ERRMSG_OOM "Runtime error: Memory allocation failure"
enum ut_error_type {