diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-09-26 22:03:16 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-09-26 22:03:16 +0200 |
commit | 087b6c77a1e2cbb014bb19a4bed78a04336d51dc (patch) | |
tree | 3389bce95691f46cf4da11333f345207e0e72b24 /ast.h | |
parent | 486ff859ced13c2454e7d12788069e5db30b618d (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 { |