Skip to content

Commit

Permalink
Add comment into test string if comments are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Mar 28, 2021
1 parent 719d34f commit 9e4fd8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/VisualStudio/lwjson_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@
* Open "include/lwjson/lwjson_opt.h" and
* copy & replace here settings you want to change values
*/
#define LWJSON_CFG_JSON5 1
#define LWJSON_CFG_COMMENTS 1

#endif /* LWJSON_HDR_OPTS_H */
3 changes: 3 additions & 0 deletions test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ test_json_data_types(void) {
" \"num2\": -1234,"
" \"num3\": 0"
" },"
#if LWJSON_CFG_COMMENTS
" /* This is my comment... */"
#endif /* LWJSON_CFG_COMMENTS */
" \"real\": {"
" \"num1\":123.4,"
" \"num2\":-123.4,"
Expand Down

0 comments on commit 9e4fd8f

Please sign in to comment.