diff options
author | gilzoide <gilzoide@gmail.com> | 2024-05-05 11:04:48 -0300 |
---|---|---|
committer | gilzoide <gilzoide@gmail.com> | 2024-05-05 11:08:42 -0300 |
commit | 9999ea36e68e910af8dbf1f8b0c0fc4bf2c3b6a5 (patch) | |
tree | 3f89305088b7f14965dce6c15af45b95b3eb0472 /sources/rl/enums.h | |
parent | d78391bcf9d9730a70298c39871b60314629ed66 (diff) | |
download | gamejam-slgj-2024-9999ea36e68e910af8dbf1f8b0c0fc4bf2c3b6a5.tar.gz gamejam-slgj-2024-9999ea36e68e910af8dbf1f8b0c0fc4bf2c3b6a5.tar.bz2 gamejam-slgj-2024-9999ea36e68e910af8dbf1f8b0c0fc4bf2c3b6a5.zip |
Add script for automatically generating enums.c from raylib_api.json
Diffstat (limited to 'sources/rl/enums.h')
-rw-r--r-- | sources/rl/enums.h | 9 |
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); |