2003-09-17 08:06:36 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/except.h
|
|
|
|
// Purpose: C++ exception related stuff
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17.09.2003
|
|
|
|
// RCS-ID: $Id$
|
2004-05-23 10:56:36 -04:00
|
|
|
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-09-17 08:06:36 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#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_
|
|
|
|
|