You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
275 B
C
20 lines
275 B
C
|
7 hours ago
|
#pragma once
|
||
|
|
class GlobalDefine
|
||
|
|
{
|
||
|
|
private:
|
||
|
|
GlobalDefine();
|
||
|
|
public:
|
||
|
|
~GlobalDefine();
|
||
|
|
private:
|
||
|
|
static GlobalDefine* m_instance;
|
||
|
|
public:
|
||
|
|
static GlobalDefine* GetInstance()
|
||
|
|
{
|
||
|
|
if (m_instance == nullptr) {
|
||
|
|
m_instance = new GlobalDefine();
|
||
|
|
}
|
||
|
|
return m_instance;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|