summaryrefslogtreecommitdiff
path: root/sources/rl/enums.h
diff options
context:
space:
mode:
authorHenrique Lacreta Alves <henriquelalves@gmail.com>2024-05-14 10:12:39 +0300
committerGitHub <noreply@github.com>2024-05-14 10:12:39 +0300
commit9859882f9f37f3eee6f9b90348c7e3c2ed229c49 (patch)
tree3f89305088b7f14965dce6c15af45b95b3eb0472 /sources/rl/enums.h
parent569c6856d1bc1b873b317a470d8d1591f92568a2 (diff)
parent9999ea36e68e910af8dbf1f8b0c0fc4bf2c3b6a5 (diff)
downloadgamejam-slgj-2024-9859882f9f37f3eee6f9b90348c7e3c2ed229c49.tar.gz
gamejam-slgj-2024-9859882f9f37f3eee6f9b90348c7e3c2ed229c49.tar.bz2
gamejam-slgj-2024-9859882f9f37f3eee6f9b90348c7e3c2ed229c49.zip
Merge pull request #4 from gilzoide/automatic-raylib-enums
Automatic bindings for raylib enums
Diffstat (limited to 'sources/rl/enums.h')
-rw-r--r--sources/rl/enums.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/rl/enums.h b/sources/rl/enums.h
new file mode 100644
index 0000000..02b779c
--- /dev/null
+++ b/sources/rl/enums.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "s7/s7.h"
+
+/// Defines an enum in s7 with the same name and value as in C
+#define S7_DEFINE_ENUM(s7, x) \
+ s7_define_variable(s7, #x, s7_make_integer(s7, x))
+
+void rl_register_enums(s7_scheme *s7);