diff options
| author | realtradam <[email protected]> | 2022-02-08 03:12:31 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-02-08 03:12:31 -0500 |
| commit | 864c710a510be8e318023e34565209f9a24a3ac7 (patch) | |
| tree | f42c172c290df6ba587042f978747dc4f88ba352 /include/raylib/core.h | |
| parent | 187cab9f77a6274ba4e5bb9c012fca5549c020fb (diff) | |
| download | mruby-raylib-864c710a510be8e318023e34565209f9a24a3ac7.tar.gz mruby-raylib-864c710a510be8e318023e34565209f9a24a3ac7.zip | |
move stuff to types.h
Diffstat (limited to 'include/raylib/core.h')
| -rw-r--r-- | include/raylib/core.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/raylib/core.h b/include/raylib/core.h deleted file mode 100644 index 7985fa1..0000000 --- a/include/raylib/core.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef MRUBY_RAYLIB_CORE_H -#define MRUBY_RAYLIB_CORE_H -#include <raylib.h> -#include <mruby.h> -#include <mruby/string.h> -#include <mruby/data.h> -#include <mruby/numeric.h> -#include <stdlib.h> -#if defined(PLATFORM_WEB) -#include <emscripten/emscripten.h> -#endif - - -#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);\ - if(var_name) { mrb_free(mrb, var_name); }\ - mrb_data_init(target, NULL, &mrb_type);\ - var_name = (type *)mrb_malloc(mrb, sizeof(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*); - -#endif /* end of include guard MRUBY_RAYLIB_CORE_H */ - |
