summaryrefslogtreecommitdiff
path: root/pom.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-12 00:47:39 -0400
committerpommicket <pommicket@gmail.com>2025-09-12 00:47:39 -0400
commita835e738761238b891847c8303592b504018f017 (patch)
tree4f63429a0781a507cec101cbd9b617ba43b0ce53 /pom.h
parentb290660013101d3817245176d2a34726498d08fc (diff)
Parse section headers
Diffstat (limited to 'pom.h')
-rw-r--r--pom.h14
1 files changed, 11 insertions, 3 deletions
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 <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_