summaryrefslogtreecommitdiff
path: root/kon/konstage.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/konstage.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konstage.h')
-rw-r--r--kon/konstage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/konstage.h b/kon/konstage.h
index f19c5f0..9ef9c96 100644
--- a/kon/konstage.h
+++ b/kon/konstage.h
@@ -29,6 +29,10 @@
#include "konsofren.h"
#include "kon2d.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** definition ***/
/* the picture behind everything. none leaves the framebuffer as it is, so a map or a scene drawn first shows through */
@@ -146,4 +150,8 @@ int kon_stageBusy(const kon_stage_t *stage);
void kon_stageDrawBackground(const kon_stage_t *stage, kon_framebuffer_t *fb);
void kon_stageDraw(const kon_stage_t *stage, kon_framebuffer_t *fb, kon_layer_t layer);
+
+#ifdef __cplusplus
+}
+#endif
#endif