ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

_range_errors.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1999
00003  * Silicon Graphics
00004  *
00005  * Permission to use, copy, modify, distribute and sell this software
00006  * and its documentation for any purpose is hereby granted without fee,
00007  * provided that the above copyright notice appear in all copies and
00008  * that both that copyright notice and this permission notice appear
00009  * in supporting documentation.  Silicon Graphics makes no
00010  * representations about the suitability of this software for any
00011  * purpose.  It is provided "as is" without express or implied warranty.
00012  *
00013  */
00014 
00015 #ifndef _STLP_RANGE_ERRORS_H
00016 #define _STLP_RANGE_ERRORS_H
00017 
00018 // A few places in the STL throw range errors, using standard exception
00019 // classes defined in <stdexcept>.  This header file provides functions
00020 // to throw those exception objects.
00021 
00022 // _STLP_DONT_THROW_RANGE_ERRORS is a hook so that users can disable
00023 // this exception throwing.
00024 #if defined (_STLP_CAN_THROW_RANGE_ERRORS) && defined (_STLP_USE_EXCEPTIONS) && \
00025    !defined (_STLP_DONT_THROW_RANGE_ERRORS)
00026 #  define _STLP_THROW_RANGE_ERRORS
00027 #endif
00028 
00029 // For the STLport iostreams, only declaration here, definition is in the lib
00030 #if !defined (_STLP_USE_NO_IOSTREAMS) && !defined (_STLP_EXTERN_RANGE_ERRORS)
00031 #  define _STLP_EXTERN_RANGE_ERRORS
00032 #endif
00033 
00034 _STLP_BEGIN_NAMESPACE
00035 void _STLP_FUNCTION_THROWS _STLP_DECLSPEC _STLP_CALL __stl_throw_runtime_error(const char* __msg);
00036 void _STLP_FUNCTION_THROWS _STLP_DECLSPEC _STLP_CALL __stl_throw_range_error(const char* __msg);
00037 void _STLP_FUNCTION_THROWS _STLP_DECLSPEC _STLP_CALL __stl_throw_out_of_range(const char* __msg);
00038 void _STLP_FUNCTION_THROWS _STLP_DECLSPEC _STLP_CALL __stl_throw_length_error(const char* __msg);
00039 void _STLP_FUNCTION_THROWS _STLP_DECLSPEC _STLP_CALL __stl_throw_invalid_argument(const char* __msg);
00040 void _STLP_FUNCTION_THROWS _STLP_DECLSPEC _STLP_CALL __stl_throw_overflow_error(const char* __msg);
00041 
00042 #if defined (__DMC__) && !defined (_STLP_NO_EXCEPTIONS)
00043 #   pragma noreturn(__stl_throw_runtime_error)
00044 #   pragma noreturn(__stl_throw_range_error)
00045 #   pragma noreturn(__stl_throw_out_of_range)
00046 #   pragma noreturn(__stl_throw_length_error)
00047 #   pragma noreturn(__stl_throw_invalid_argument)
00048 #   pragma noreturn(__stl_throw_overflow_error)
00049 #endif
00050 _STLP_END_NAMESPACE
00051 
00052 #if !defined (_STLP_EXTERN_RANGE_ERRORS)
00053 #  include <stl/_range_errors.c>
00054 #endif
00055 
00056 #endif /* _STLP_RANGE_ERRORS_H */
00057 
00058 // Local Variables:
00059 // mode:C++
00060 // End:

Generated on Sat May 26 2012 04:27:56 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.