mirror of https://github.com/nlohmann/json.git
* Update macros.md Typos, typospull/3382/head
parent
0fd95d2e28
commit
8d7b5b6a28
|
@ -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
|
The diagnostics messages can also be controlled with the CMake option `JSON_Diagnostics` (`OFF` by default) which sets
|
||||||
`JSON_DIAGNOSTICS` accordingly.
|
`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.
|
||||||
|
|
||||||
!!! info "Default behavior"
|
!!! info "Default behavior"
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
|
Loading…
Reference in New Issue