summaryrefslogtreecommitdiff
path: root/kon/konrpg.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/konrpg.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konrpg.h')
-rw-r--r--kon/konrpg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/konrpg.h b/kon/konrpg.h
index 3eb1820..d687416 100644
--- a/kon/konrpg.h
+++ b/kon/konrpg.h
@@ -28,6 +28,10 @@
#include "kontile.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** directions ***/
/* the order of the rows in an RPG Maker character sheet */
@@ -101,4 +105,8 @@ int kon_eventAt(const kon_tileEvent_t *events, int count, int column, int row, i
typedef struct kon_eventList { const kon_tileEvent_t *events; int count; } kon_eventList_t;
int kon_eventBlocks(int column, int row, void *user);
+
+#ifdef __cplusplus
+}
+#endif
#endif