os/ossrv/genericopenlibs/cppstdlib/stl/stlport/exception
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
 * Copyright (c) 1996,1997
sl@0
     3
 * Silicon Graphics Computer Systems, Inc.
sl@0
     4
 *
sl@0
     5
 * Copyright (c) 1999
sl@0
     6
 * Boris Fomitchev
sl@0
     7
 *
sl@0
     8
 * This material is provided "as is", with absolutely no warranty expressed
sl@0
     9
 * or implied. Any use is at your own risk.
sl@0
    10
 *
sl@0
    11
 * Permission to use or copy this software for any purpose is hereby granted
sl@0
    12
 * without fee, provided the above notices are retained on all copies.
sl@0
    13
 * Permission to modify the code and to distribute modified code is granted,
sl@0
    14
 * provided the above notices are retained, and a notice that the code was
sl@0
    15
 * modified is included with the above copyright notice.
sl@0
    16
 */
sl@0
    17
sl@0
    18
// This header exists solely for portability.  Normally it just includes
sl@0
    19
// the native header <exception>.
sl@0
    20
sl@0
    21
#ifndef _STLP_EXCEPTION
sl@0
    22
sl@0
    23
#if !defined (_STLP_OUTERMOST_HEADER_ID)
sl@0
    24
#  define _STLP_OUTERMOST_HEADER_ID 0x423
sl@0
    25
#  include <stl/_prolog.h>
sl@0
    26
#elif (_STLP_OUTERMOST_HEADER_ID == 0x423)
sl@0
    27
#  define _STLP_DONT_POP_HEADER_ID
sl@0
    28
#  define _STLP_EXCEPTION
sl@0
    29
#endif
sl@0
    30
sl@0
    31
#if (_STLP_OUTERMOST_HEADER_ID != 0x423) || defined (_STLP_DONT_POP_HEADER_ID)
sl@0
    32
/* If we are here it means that we are in an include called 
sl@0
    33
 * from the native lib which means that we can simply forward this
sl@0
    34
 * call to the native exception header:
sl@0
    35
 */
sl@0
    36
#  include _STLP_NATIVE_CPP_RUNTIME_HEADER(exception)
sl@0
    37
#else
sl@0
    38
#  include <stl/_exception.h>
sl@0
    39
#endif
sl@0
    40
sl@0
    41
#if (_STLP_OUTERMOST_HEADER_ID == 0x423)
sl@0
    42
#  if !defined(_STLP_DONT_POP_HEADER_ID)
sl@0
    43
#    include <stl/_epilog.h>
sl@0
    44
#    undef  _STLP_OUTERMOST_HEADER_ID
sl@0
    45
#  else
sl@0
    46
#    undef  _STLP_DONT_POP_HEADER_ID
sl@0
    47
#  endif
sl@0
    48
#endif
sl@0
    49
sl@0
    50
#endif /* _STLP_EXCEPTION */
sl@0
    51
sl@0
    52
sl@0
    53
// Local Variables:
sl@0
    54
// mode:C++
sl@0
    55
// End: