summaryrefslogtreecommitdiffhomepage
path: root/include/raylib/core.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2022-02-07 05:11:26 -0500
committerrealtradam <[email protected]>2022-02-07 05:11:26 -0500
commit187cab9f77a6274ba4e5bb9c012fca5549c020fb (patch)
treeaa8c02849eb23524b1e785fb812dc0c14db0efc5 /include/raylib/core.h
parent2a795c7b474025b71155f8d330bfebdc52d18451 (diff)
downloadmruby-raylib-187cab9f77a6274ba4e5bb9c012fca5549c020fb.tar.gz
mruby-raylib-187cab9f77a6274ba4e5bb9c012fca5549c020fb.zip
reworked some more functions
Diffstat (limited to 'include/raylib/core.h')
-rw-r--r--include/raylib/core.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/raylib/core.h b/include/raylib/core.h
index c98c80d..7985fa1 100644
--- a/include/raylib/core.h
+++ b/include/raylib/core.h
@@ -11,7 +11,7 @@
#endif
-#define PREWRAPSTRUCT(var_name, type, target) type *var_name = (type *)DATA_PTR(target)
+#define PREWRAPSTRUCT(var_name, type, target) var_name = (type *)DATA_PTR(target)
#define WRAPSTRUCT(type, mrb_type, target, var_name) \
PREWRAPSTRUCT(var_name, type, target);\
@@ -19,11 +19,12 @@
mrb_data_init(target, NULL, &mrb_type);\
var_name = (type *)mrb_malloc(mrb, sizeof(type));\
-#define UNWRAPSTRUCT(type, mrb_type, target, var_name) type *var_name = DATA_GET_PTR(mrb, target, &mrb_type, type)
+#define UNWRAPSTRUCT(type, mrb_type, target, var_name) var_name = DATA_GET_PTR(mrb, target, &mrb_type, type)
extern const struct mrb_data_type Color_type;
+extern const struct mrb_data_type Rectangle_type;
void mrb_init_raylib_core(mrb_state*);