summaryrefslogtreecommitdiff
path: root/kon/konworld.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/konworld.h
parenta2dc5ca4c659e2d0a9527cd0910bc76b65e6d09f (diff)
headers: extern C guards and C++ safe vector and rect constructors
Diffstat (limited to 'kon/konworld.h')
-rw-r--r--kon/konworld.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kon/konworld.h b/kon/konworld.h
index 364d400..cccab2f 100644
--- a/kon/konworld.h
+++ b/kon/konworld.h
@@ -31,6 +31,10 @@
#include "kon3d.h"
#include "konsector.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*** definition ***/
/* one place to ask "can I stand here, can I walk there" for everything a 3d game is built from: the rooms of a sector map,
@@ -148,4 +152,8 @@ int kon_worldRay(const kon_world_t *world, kon_vec3_t origin, kon_vec3_t directi
/* 1 if nothing is between the two points. for "can the monster see me" and "is the light reaching here" */
int kon_worldVisible(const kon_world_t *world, kon_vec3_t from, kon_vec3_t to);
+
+#ifdef __cplusplus
+}
+#endif
#endif