remove GEODE_STATIC_PTR and GEODE_STATIC_VAR

This commit is contained in:
matcool 2024-11-10 10:38:59 -03:00
parent 7b171c56c9
commit deab3d2517

View file

@ -5,19 +5,6 @@
#include <Geode/platform/platform.hpp> #include <Geode/platform/platform.hpp>
#include <variant> #include <variant>
#define GEODE_STATIC_PTR(type, name) \
static type* s_##name; \
inline type* name() { \
if (!s_##name) s_##name = new type(); \
return s_##name; \
}
#define GEODE_STATIC_VAR(type, name) \
inline type& name() { \
static type s_##name; \
return s_##name; \
}
#if !defined(GEODE_CONCAT) #if !defined(GEODE_CONCAT)
#define GEODE_WRAPPER_CONCAT(x, y) x##y #define GEODE_WRAPPER_CONCAT(x, y) x##y
#define GEODE_CONCAT(x, y) GEODE_WRAPPER_CONCAT(x, y) #define GEODE_CONCAT(x, y) GEODE_WRAPPER_CONCAT(x, y)