SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
SingletonHolder.hpp
1#pragma once
2
3template<typename T>
5public:
6 static T* get() {
7 return sInstance;
8 }
9
10 static void set(T *p) {
11 sInstance = p;
12 }
13
14 static bool exists() {
15 return sInstance != nullptr;
16 }
17
18 static T* sInstance;
19};
20
21template<typename T>