ams: deduplicate static initialization logic
This commit is contained in:
1 parent
78f7218c4f
commit
30fac905af
24 files changed
+202
-262
No files matched your search
@@ -44,7 +44,8 @@ namespace ams::ncm {
|
||||
}
|
||||
|
||||
HeapState &GetHeapState() {
|
||||
static HeapState s_heap_state = {};
|
||||
AMS_FUNCTION_LOCAL_STATIC_CONSTINIT(HeapState, s_heap_state);
|
||||
|
||||
return s_heap_state;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user