From 61df4bd3e64acbe372d47682d11a34b4211d2074 Mon Sep 17 00:00:00 2001 From: Evgeniy Reizner Date: Sun, 22 Mar 2020 16:26:40 +0200 Subject: [PATCH] Add missing cpp_compat documentation. --- docs.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs.md b/docs.md index 985b8a817..32c5feafd 100644 --- a/docs.md +++ b/docs.md @@ -376,6 +376,21 @@ includes = ["my_great_lib.h"] # default: false no_includes = false +# Whether to make a C header C++ compatible. +# These will wrap generated functions into a `extern "C"` block, e.g. +# +# #ifdef __cplusplus +# extern "C" { +# #endif // __cplusplus +# +# // Generated functions. +# +# #ifdef __cplusplus +# } // extern "C" +# #endif // __cplusplus +# +# default: false +cpp_compat = false