summaryrefslogtreecommitdiff
path: root/kon/kondebug.h
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-13 10:28:17 +0800
committerKonAki <konaki@anokonaki.org>2026-10-13 10:28:17 +0800
commitd3432fcc288a53dff9eb219c8857ca48c5981323 (patch)
treefba5cc730c91d2c674efe6d71dd20e9d6bf7d0d8 /kon/kondebug.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/kondebug.h')
-rw-r--r--kon/kondebug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/kondebug.h b/kon/kondebug.h
index 0f32a0f..59a7b7a 100644
--- a/kon/kondebug.h
+++ b/kon/kondebug.h
@@ -33,6 +33,10 @@
#include "konfont.h"
#include "konassets.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** definition ***/
typedef struct kon_debug kon_debug_t;
@@ -96,4 +100,8 @@ static inline int kon_debugQuitRequested(const kon_debug_t *debug) { (void)debug
#endif
+
+#ifdef __cplusplus
+}
+#endif
#endif