From 21be0af5b0cb18f82d8d2bf8b6ff1b7be9b3346d Mon Sep 17 00:00:00 2001 From: Andrea Cocito <39852324+puffetto@users.noreply.github.com> Date: Sun, 6 Mar 2022 11:42:47 +0100 Subject: [PATCH] Update macros.md --- doc/mkdocs/docs/features/macros.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/mkdocs/docs/features/macros.md b/doc/mkdocs/docs/features/macros.md index 3d2203e72..4b41bb85a 100644 --- a/doc/mkdocs/docs/features/macros.md +++ b/doc/mkdocs/docs/features/macros.md @@ -51,6 +51,8 @@ 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: This macro changes the definition of exception classes, thus this macro MUST be defined in the same way globally, even across different compilation units, or will cause a violation of the One Definition Rule. No NOT link together code compiled with and without JSON_DIAGNOSTICS defined. + !!! info "Default behavior" ```cpp