Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / Exception_Macros.h
blobbb74b1a212985e3add47acccdc839b737689471f
1 // -*- C++ -*-
3 // ============================================================================
4 /**
5 * @file Exception_Macros.h
7 * $Id: Exception_Macros.h 80826 2008-03-04 14:51:23Z wotte $
9 * Writing code that is portable between platforms with or without
10 * native C++ exceptions is hard. The following macros offer some
11 * help on this task.
13 * @author Nanbor Wang <nanbor@cs.wustl.edu>
14 * @author Aniruddha Gokhale <gokhale@sahyadri.research.bell-labs.com>
15 * @author Carlos O'Ryan <coryan@uci.edu>
16 * @author Krishnakumar B <kitty@cs.wustl.edu>, et al.
18 // ============================================================================
20 // Macros for handling exceptions.
22 #ifndef ACE_EXCEPTION_MACROS_H
23 #define ACE_EXCEPTION_MACROS_H
25 #include /**/ "ace/pre.h"
27 #include /**/ "ace/config-all.h"
29 # if !defined (ACE_LACKS_PRAGMA_ONCE)
30 # pragma once
31 # endif /* ACE_LACKS_PRAGMA_ONCE */
33 // By default, if the compiler supports native exception handling, assume
34 // CORBA also support native exception handling. But it can be disabled by
35 // defining ACE_CORBA_HAS_EXCEPTIONS=0. If the compiler does not support
36 // exceptions handling, make sure native exception handling is disabled.
37 #if defined (ACE_HAS_EXCEPTIONS)
38 # if defined (ACE_CORBA_HAS_EXCEPTIONS)
39 # if (ACE_CORBA_HAS_EXCEPTIONS == 0)
40 # undef ACE_USES_NATIVE_EXCEPTIONS
41 # else /* ACE_CORBA_HAS_EXCEPTIONS != 0 */
42 # define ACE_USES_NATIVE_EXCEPTIONS
43 # endif /* ACE_CORBA_HAS_EXCEPTIONS == 0 */
44 # else
45 # define ACE_USES_NATIVE_EXCEPTIONS
46 # define ACE_CORBA_HAS_EXCEPTIONS
47 # endif /* ACE_CORBA_HAS_EXCEPTIONS */
48 #else /* ! ACE_HAS_EXCEPTIONS */
49 # undef ACE_CORBA_HAS_EXCEPTIONS
50 # undef ACE_USES_NATIVE_EXCEPTIONS
51 #endif /* ACE_HAS_EXCEPTIONS */
53 #include /**/ "ace/post.h"
55 #endif /* ACE_EXCEPTION_MACROS_H */