From a835e738761238b891847c8303592b504018f017 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 12 Sep 2025 00:47:39 -0400 Subject: Parse section headers --- pom.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'pom.h') diff --git a/pom.h b/pom.h index f76c30d..f37c974 100644 --- a/pom.h +++ b/pom.h @@ -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 #include +#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_ -- cgit v1.2.3