git-svn-id: svn://db.shs.com.ru/pip@804 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -29,7 +29,13 @@ class PITimer;
|
||||
class PIPeer;
|
||||
class PIIntrospection;
|
||||
|
||||
#define __PIINTROSPECTION_SINGLETON__(T) \
|
||||
static PIIntrospection##T##Interface * instance() {static PIIntrospection##T##Interface ret; return &ret;} \
|
||||
#define __PIINTROSPECTION_SINGLETON_H__(T) \
|
||||
static PIIntrospection##T##Interface * instance();
|
||||
|
||||
#define __PIINTROSPECTION_SINGLETON_CPP__(T) \
|
||||
PIIntrospection##T##Interface * PIIntrospection##T##Interface::instance() {\
|
||||
static PIIntrospection##T##Interface ret;\
|
||||
return &ret;\
|
||||
}
|
||||
|
||||
#endif // PIINTROSPECTION_BASE_H
|
||||
|
||||
Reference in New Issue
Block a user