2 * Copyright (c) 1996,1997
3 * Silicon Graphics Computer Systems, Inc.
8 * This material is provided "as is", with absolutely no warranty expressed
9 * or implied. Any use is at your own risk.
11 * Permission to use or copy this software for any purpose is hereby granted
12 * without fee, provided the above notices are retained on all copies.
13 * Permission to modify the code and to distribute modified code is granted,
14 * provided the above notices are retained, and a notice that the code was
15 * modified is included with the above copyright notice.
18 // This header exists solely for portability. Normally it just includes
19 // the native header <exception>.
21 #ifndef _STLP_EXCEPTION
23 #if !defined (_STLP_OUTERMOST_HEADER_ID)
24 # define _STLP_OUTERMOST_HEADER_ID 0x423
25 # include <stl/_prolog.h>
26 #elif (_STLP_OUTERMOST_HEADER_ID == 0x423)
27 # define _STLP_DONT_POP_HEADER_ID
28 # define _STLP_EXCEPTION
31 #if (_STLP_OUTERMOST_HEADER_ID == 0x423) && !defined (_STLP_DONT_POP_HEADER_ID)
32 # ifndef _STLP_INTERNAL_EXCEPTION
33 # include <stl/_exception.h>
37 #if (_STLP_OUTERMOST_HEADER_ID != 0x423) || defined (_STLP_DONT_POP_HEADER_ID) || defined (_STLP_IMPORT_VENDOR_STD)
38 /* If we are here it means that we are in an include called
39 * from the native lib which means that we can simply forward this
40 * call to the native exception header:
42 # if defined (_STLP_HAS_INCLUDE_NEXT)
43 # include_next <exception>
45 # if defined (__DMC__) && (_STLP_OUTERMOST_HEADER_ID == 0x874)
46 // Workaround to DMC harcoded typeinfo.h inclusion.
47 # include <../include/exception>
49 # include _STLP_NATIVE_CPP_RUNTIME_HEADER(exception)
54 #if (_STLP_OUTERMOST_HEADER_ID == 0x423)
55 # if !defined(_STLP_DONT_POP_HEADER_ID)
56 # include <stl/_epilog.h>
57 # undef _STLP_OUTERMOST_HEADER_ID
59 # undef _STLP_DONT_POP_HEADER_ID
63 #endif /* _STLP_EXCEPTION */