mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-04-11 14:22:37 +02:00
Moved the static_assert in GLOBAL_CACHED to the top.
This commit is contained in:
parent
35b072e1df
commit
56ce6911eb
@ -225,9 +225,9 @@ Variant _GLOBAL_DEF_ALIAS(const String &p_var, const String &p_old_name, const V
|
||||
#define GLOBAL_GET(m_var) ProjectSettings::get_singleton()->get(m_var)
|
||||
|
||||
#define GLOBAL_CACHED(m_name, m_type, m_setting_name) \
|
||||
static_assert(HAS_TRIVIAL_DESTRUCTOR(m_type), "GLOBAL_CACHED must use a trivial type that allows static lifetime."); \
|
||||
static m_type m_name; \
|
||||
{ \
|
||||
static_assert(HAS_TRIVIAL_DESTRUCTOR(m_type), "GLOBAL_CACHED must use a trivial type that allows static lifetime."); \
|
||||
static uint32_t local_version = 0; \
|
||||
static Mutex local_mutex; \
|
||||
uint32_t new_version = ProjectSettings::get_singleton()->get_version(); \
|
||||
|
Loading…
Reference in New Issue
Block a user