ams: remove TYPED_STORAGE() macro in favor of template

This commit is contained in:
Michael Scire
2021-03-21 18:47:30 -07:00
parent 8d9174b227
commit aff0da9427
31 changed files with 55 additions and 57 deletions

View File

@@ -1148,7 +1148,7 @@ namespace ams::dmnt::cheat::impl {
/* Manager global. */
TYPED_STORAGE(CheatProcessManager) g_cheat_process_manager;
util::TypedStorage<CheatProcessManager> g_cheat_process_manager;
}

View File

@@ -143,7 +143,7 @@ namespace ams::dmnt::cheat::impl {
};
/* Manager global. */
TYPED_STORAGE(DebugEventsManager) g_events_manager;
util::TypedStorage<DebugEventsManager> g_events_manager;
}

View File

@@ -78,7 +78,7 @@ namespace ams::pm::impl {
NON_MOVEABLE(ProcessInfoAllocator);
static_assert(MaxProcessInfos >= 0x40, "MaxProcessInfos is too small.");
private:
TYPED_STORAGE(ProcessInfo) process_info_storages[MaxProcessInfos];
util::TypedStorage<ProcessInfo> process_info_storages[MaxProcessInfos];
bool process_info_allocated[MaxProcessInfos];
os::Mutex lock;
private: