X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/955a919785b76a1826e6b8d55f696a0dfb62a318..c5172ed1bf56c880c4ae928eae4da21c402a2ba3:/include/wx/cocoa/app.h diff --git a/include/wx/cocoa/app.h b/include/wx/cocoa/app.h index ac4078563f..c658fbb3ae 100644 --- a/include/wx/cocoa/app.h +++ b/include/wx/cocoa/app.h @@ -34,6 +34,7 @@ public: inline void CocoaRequestIdle() { m_isIdle = true; } protected: WX_NSApplication m_cocoaApp; + WX_NSThread m_cocoaMainThread; void CocoaInstallIdleHandler(); bool m_isIdle; @@ -60,6 +61,16 @@ public: virtual bool OnInit(); virtual bool OnInitGui(); + +#ifdef __WXDEBUG__ + virtual void OnAssert(const wxChar *file, int line, const wxChar *cond, const wxChar *msg); + bool IsInAssert() const { return m_isInAssert; } +#endif // __WXDEBUG__ + +private: +#ifdef __WXDEBUG__ + bool m_isInAssert; +#endif // __WXDEBUG__ }; #endif // _WX_COCOA_APP_H_