1 csetjmp |
1 /* |
|
2 * Copyright (c) 1999 |
|
3 * Boris Fomitchev |
|
4 * |
|
5 * This material is provided "as is", with absolutely no warranty expressed |
|
6 * or implied. Any use is at your own risk. |
|
7 * |
|
8 * Permission to use or copy this software for any purpose is hereby granted |
|
9 * without fee, provided the above notices are retained on all copies. |
|
10 * Permission to modify the code and to distribute modified code is granted, |
|
11 * provided the above notices are retained, and a notice that the code was |
|
12 * modified is included with the above copyright notice. |
|
13 * |
|
14 */ |
|
15 |
|
16 #ifndef _STLP_CSETJMP |
|
17 # define _STLP_CSETJMP |
|
18 |
|
19 # ifndef _STLP_OUTERMOST_HEADER_ID |
|
20 # define _STLP_OUTERMOST_HEADER_ID 0x111 |
|
21 # include <stl/_prolog.h> |
|
22 # endif |
|
23 |
|
24 // if the macro is on, the header is already there |
|
25 # ifndef setjmp |
|
26 # if defined (_STLP_USE_NEW_C_HEADERS) |
|
27 # include _STLP_NATIVE_CPP_C_HEADER(csetjmp) |
|
28 # else |
|
29 #ifdef __SYMBIAN32__ |
|
30 # include <setjmp.h> |
|
31 #else |
|
32 # include _STLP_NATIVE_C_HEADER(setjmp.h) |
|
33 #endif |
|
34 # endif |
|
35 # endif |
|
36 |
|
37 # ifdef _STLP_IMPORT_VENDOR_CSTD |
|
38 _STLP_BEGIN_NAMESPACE |
|
39 using _STLP_VENDOR_CSTD::jmp_buf; |
|
40 # ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS |
|
41 # ifndef setjmp |
|
42 using _STLP_VENDOR_CSTD::setjmp; |
|
43 # endif |
|
44 using _STLP_VENDOR_CSTD::longjmp; |
|
45 # endif |
|
46 _STLP_END_NAMESPACE |
|
47 #endif /* _STLP_IMPORT_VENDOR_CSTD */ |
|
48 |
|
49 # if (_STLP_OUTERMOST_HEADER_ID == 0x111 ) |
|
50 # include <stl/_epilog.h> |
|
51 # undef _STLP_OUTERMOST_HEADER_ID |
|
52 # endif |
|
53 |
|
54 #endif /* _STLP_CSETJMP */ |
|
55 |
|
56 // Local Variables: |
|
57 // mode:C++ |
|
58 // End: |