From 4a6e6ca8c7a63802fb15d95ee8aafff310e3a6de Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Mon, 7 Mar 2022 13:48:24 +0100 Subject: [PATCH] :memo: update documentation --- doc/mkdocs/docs/features/macros.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/mkdocs/docs/features/macros.md b/doc/mkdocs/docs/features/macros.md index cade9d5bc..9994c5dcd 100644 --- a/doc/mkdocs/docs/features/macros.md +++ b/doc/mkdocs/docs/features/macros.md @@ -51,7 +51,11 @@ that enabling this macro increases the size of every JSON value by one pointer a The diagnostics messages can also be controlled with the CMake option `JSON_Diagnostics` (`OFF` by default) which sets `JSON_DIAGNOSTICS` accordingly. -WARNING: As this macro changes the definition of the json object, it MUST be defined in the same way globally, even across different compilation units; do NOT link together code compiled with and without JSON_DIAGNOSTICS defined as this is a violation of the One Definition Rule and will cause undefined behaviour. +!!! warning + + As this macro changes the definition of the `basic_json` object, it MUST be defined in the same way globally, even + across different compilation units; DO NOT link together code compiled with different definitions of + `JSON_DIAGNOSTICS` as this is a violation of the One Definition Rule and will cause undefined behaviour. !!! info "Default behavior"