From 9999ea36e68e910af8dbf1f8b0c0fc4bf2c3b6a5 Mon Sep 17 00:00:00 2001 From: gilzoide Date: Sun, 5 May 2024 11:04:48 -0300 Subject: Add script for automatically generating enums.c from raylib_api.json --- sources/rl/enums.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sources/rl/enums.h (limited to 'sources/rl/enums.h') 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); -- cgit v1.2.3