Files
2026-05-20 03:08:08 +09:00

22 lines
370 B
C++

#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_