mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-11 04:21:08 +00:00
33 lines
426 B
C++
33 lines
426 B
C++
|
|
#include "singletonmodule.h"
|
|
|
|
class NullType
|
|
{
|
|
public:
|
|
enum { VERSION = 1 };
|
|
static const char* name()
|
|
{
|
|
return "";
|
|
}
|
|
};
|
|
|
|
class NullModule
|
|
{
|
|
public:
|
|
typedef NullType Type;
|
|
static const char* getName()
|
|
{
|
|
return "";
|
|
}
|
|
void* getTable()
|
|
{
|
|
return NULL;
|
|
}
|
|
};
|
|
|
|
void TEST_SINGLETONMODULE()
|
|
{
|
|
SingletonModule<NullModule> null;
|
|
null.capture();
|
|
null.release();
|
|
}
|