diff options
| author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-05-20 18:34:35 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2019-06-03 17:09:24 +0200 |
| commit | 14df9e5cb2e9f2de4adf9b979e8ef33de37b80bd (patch) | |
| tree | 1f896d45a14d5a7c777d45b02ad7ca780cc30cd7 /modules/mono/mono_gd/gd_mono_utils.h | |
| parent | 22583ec6a39bb56943c78c0ed9a094b28b666b75 (diff) | |
| download | redot-engine-14df9e5cb2e9f2de4adf9b979e8ef33de37b80bd.tar.gz | |
Android build and export for the mono module
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_utils.h')
| -rw-r--r-- | modules/mono/mono_gd/gd_mono_utils.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/modules/mono/mono_gd/gd_mono_utils.h b/modules/mono/mono_gd/gd_mono_utils.h index ee239be959..00e1ffdd31 100644 --- a/modules/mono/mono_gd/gd_mono_utils.h +++ b/modules/mono/mono_gd/gd_mono_utils.h @@ -218,14 +218,12 @@ struct MonoCache { bool corlib_cache_updated; bool godot_api_cache_updated; - void clear_members(); - void cleanup(); + void clear_corlib_cache(); + void clear_godot_api_cache(); MonoCache() { - corlib_cache_updated = false; - godot_api_cache_updated = false; - - clear_members(); + clear_corlib_cache(); + clear_godot_api_cache(); } }; @@ -233,7 +231,13 @@ extern MonoCache mono_cache; void update_corlib_cache(); void update_godot_api_cache(); -void clear_cache(); + +inline void clear_corlib_cache() { + mono_cache.clear_corlib_cache(); +} +inline void clear_godot_api_cache() { + mono_cache.clear_godot_api_cache(); +} _FORCE_INLINE_ void hash_combine(uint32_t &p_hash, const uint32_t &p_with_hash) { p_hash ^= p_with_hash + 0x9e3779b9 + (p_hash << 6) + (p_hash >> 2); |
