added some trivial macros for exception handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
252e57cee2
commit
2524f1ce36
@ -221,6 +221,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
||||
wx/dynload.h
|
||||
wx/encconv.h
|
||||
wx/event.h
|
||||
wx/except.h
|
||||
wx/features.h
|
||||
wx/ffile.h
|
||||
wx/file.h
|
||||
|
30
include/wx/except.h
Normal file
30
include/wx/except.h
Normal file
@ -0,0 +1,30 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: wx/except.h
|
||||
// Purpose: C++ exception related stuff
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 17.09.2003
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// Licence: wxWindows licence
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_EXCEPT_H_
|
||||
#define _WX_EXCEPT_H_
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// macros working whether wxUSE_EXCEPTIONS is 0 or 1
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_EXCEPTIONS
|
||||
#define wxTRY try
|
||||
#define wxCATCH_ALL(code) catch ( ... ) { code }
|
||||
#else // !wxUSE_EXCEPTIONS
|
||||
#define wxTRY
|
||||
#define wxCATCH_ALL(code)
|
||||
#endif // wxUSE_EXCEPTIONS/!wxUSE_EXCEPTIONS
|
||||
|
||||
#endif // _WX_EXCEPT_H_
|
||||
|
Loading…
Reference in New Issue
Block a user