~ubuntu-dev/wxwidgets2.6/upstream-debian

« back to all changes in this revision

Viewing changes to include/wx/except.h

  • Committer: Daniel T Chen
  • Date: 2006-06-26 10:15:11 UTC
  • Revision ID: crimsun@ubuntu.com-20060626101511-a4436cec4c6d9b35
ImportĀ DebianĀ 2.6.3.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////////
 
2
// Name:        wx/except.h
 
3
// Purpose:     C++ exception related stuff
 
4
// Author:      Vadim Zeitlin
 
5
// Modified by:
 
6
// Created:     17.09.2003
 
7
// RCS-ID:      $Id: except.h,v 1.3 2004/05/23 20:50:21 JS Exp $
 
8
// Copyright:   (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
 
9
// Licence:     wxWindows licence
 
10
///////////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef _WX_EXCEPT_H_
 
13
#define _WX_EXCEPT_H_
 
14
 
 
15
#include "wx/defs.h"
 
16
 
 
17
// ----------------------------------------------------------------------------
 
18
// macros working whether wxUSE_EXCEPTIONS is 0 or 1
 
19
// ----------------------------------------------------------------------------
 
20
 
 
21
#if wxUSE_EXCEPTIONS
 
22
    #define wxTRY try
 
23
    #define wxCATCH_ALL(code) catch ( ... ) { code }
 
24
#else // !wxUSE_EXCEPTIONS
 
25
    #define wxTRY
 
26
    #define wxCATCH_ALL(code)
 
27
#endif // wxUSE_EXCEPTIONS/!wxUSE_EXCEPTIONS
 
28
 
 
29
#endif // _WX_EXCEPT_H_
 
30