From e320bb2140aea55c1368f9a2d86edc980861f68e Mon Sep 17 00:00:00 2001 From: alferov Date: Sun, 4 Jun 2023 17:11:45 +0300 Subject: [PATCH] Create json_has_static_rtti.md --- .../docs/api/macros/json_has_static_rtti.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docs/mkdocs/docs/api/macros/json_has_static_rtti.md diff --git a/docs/mkdocs/docs/api/macros/json_has_static_rtti.md b/docs/mkdocs/docs/api/macros/json_has_static_rtti.md new file mode 100644 index 000000000..780878319 --- /dev/null +++ b/docs/mkdocs/docs/api/macros/json_has_static_rtti.md @@ -0,0 +1,31 @@ +# JSON_HAS_STATIC_RTTI + +```cpp +#define JSON_HAS_STATIC_RTTI /* value */ +``` + +This macro indicates whether the standard library has any support for RTTI (run time type information). +Possible values are `1` when supported or `0` when unsupported. + +## Default definition + +The default value is detected based on the preprocessor macro `#!cpp _HAS_STATIC_RTTI`. + +When the macro is not defined, the library will define it to its default value. + +## Examples + +??? example + + The code below forces the library to enable support for libraries with RTTI dependence: + + ```cpp + #define JSON_HAS_STATIC_RTTI 1 + #include + + ... + ``` + +## Version history + +- Added in version ?.