diff options
Diffstat (limited to 'pom.h')
-rw-r--r-- | pom.h | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -3,8 +3,8 @@ /// /// ## Thread-safety /// -/// Of course, you should not free a configuration while -/// another thread is using it (even through a section +/// Of course, you should not free or \ref pom_conf_merge into +/// a configuration while another thread is using it (even through a section /// obtained via \ref pom_conf_section). /// /// Other than that, all these functions are fully thread-safe @@ -32,6 +32,10 @@ #include <stdint.h> #include <stdbool.h> +#ifdef __cplusplus +extern "C" { +#endif + #ifndef POM__MUST_USE_L #if _MSC_VER >= 1700 // supposedly was added in VS2012 #define POM__MUST_USE_L _Check_return_ @@ -167,7 +171,7 @@ pom_error_message(const pom_error *error); /// Get the name of the file where this error occured. /// -/// The returned pointer is valid until \ref pom_conf_free is called. +/// The returned pointer is valid until the error is freed. const char * pom_error_file(const pom_error *error); @@ -445,4 +449,8 @@ pom_conf_print(const pom_conf *conf); void pom_conf_free(pom_conf *conf); +#ifdef __cplusplus +} // extern "C" #endif + +#endif // POM_H_ |