최종완료보고 버전
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef APP__H_
|
||||
#define APP__H_
|
||||
|
||||
|
||||
class HApp : public HObject
|
||||
{
|
||||
public:
|
||||
static HApp * m_pApp;
|
||||
//
|
||||
|
||||
HApp();
|
||||
virtual ~HApp() {}
|
||||
|
||||
virtual int OnMain(int nArgc, char ** pArgv) = 0;
|
||||
virtual void OnExit(int nCode) = 0;
|
||||
};
|
||||
|
||||
#define APPINIT(APP_CLASS_NAME) APP_CLASS_NAME __g_main$Application$Instance_;
|
||||
#define HAPP() (&__g_main$Application$Instance_)
|
||||
|
||||
#endif // APP__H_
|
||||
Reference in New Issue
Block a user