summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-03-21 11:22:52 -0500
committersanine-a <sanine.not@pm.me>2023-03-21 11:22:52 -0500
commit78eb15d59190c079b1edb405eeae6696724f1b2e (patch)
tree19341cac36443766950d1483952074068d0609b4 /src/common.h
parent184a9517a619c0052aabd8ad6ab00ed0d2607e97 (diff)
move modules.h -> common.h and add version numbers
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..31ff856
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,31 @@
+#ifndef HONEY_COMMON_H
+#define HONEY_COMMON_H
+
+#include <lua.h>
+
+#define HONEY_VERSION_MAJOR 0
+#define HONEY_VERSION_MINOR 0
+#define HONEY_VERSION_PATCH 0
+#define HONEY_VERSION_STR "intermissia [pre-alpha]"
+
+#define HONEY_MODULES \
+ X(audio) \
+ X(gl) \
+ X(glfw) \
+ X(glm) \
+ X(image) \
+ X(import) \
+ X(logging) \
+ X(nvg) \
+ X(ode) \
+ X(util) \
+ X(version) \
+
+
+#define X(module) \
+ void setup_ ## module (lua_State *L, int honey_index);
+HONEY_MODULES
+#undef X
+
+
+#endif