mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-25 08:57:58 -05:00
remove GEODE_STATIC_PTR and GEODE_STATIC_VAR
This commit is contained in:
parent
7b171c56c9
commit
deab3d2517
1 changed files with 0 additions and 13 deletions
|
@ -5,19 +5,6 @@
|
|||
#include <Geode/platform/platform.hpp>
|
||||
#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)
|
||||
#define GEODE_WRAPPER_CONCAT(x, y) x##y
|
||||
#define GEODE_CONCAT(x, y) GEODE_WRAPPER_CONCAT(x, y)
|
||||
|
|
Loading…
Reference in a new issue