epoc32/include/stdapis/boost/cstdlib.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/cstdlib.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,41 @@
     1.4 +//  boost/cstdlib.hpp header  ------------------------------------------------//
     1.5 +
     1.6 +//  Copyright Beman Dawes 2001.  Distributed under the Boost
     1.7 +//  Software License, Version 1.0. (See accompanying file
     1.8 +//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
     1.9 +
    1.10 +//  See http://www.boost.org/libs/utility/cstdlib.html for documentation.
    1.11 +
    1.12 +//  Revision History
    1.13 +//   26 Feb 01  Initial version (Beman Dawes)
    1.14 +
    1.15 +#ifndef BOOST_CSTDLIB_HPP
    1.16 +#define BOOST_CSTDLIB_HPP
    1.17 +
    1.18 +#include <cstdlib>
    1.19 +
    1.20 +namespace boost
    1.21 +{
    1.22 +   //  The intent is to propose the following for addition to namespace std
    1.23 +   //  in the C++ Standard Library, and to then deprecate EXIT_SUCCESS and
    1.24 +   //  EXIT_FAILURE.  As an implementation detail, this header defines the
    1.25 +   //  new constants in terms of EXIT_SUCCESS and EXIT_FAILURE.  In a new
    1.26 +   //  standard, the constants would be implementation-defined, although it
    1.27 +   //  might be worthwhile to "suggest" (which a standard is allowed to do)
    1.28 +   //  values of 0 and 1 respectively.
    1.29 +
    1.30 +   //  Rationale for having multiple failure values: some environments may
    1.31 +   //  wish to distinguish between different classes of errors.
    1.32 +   //  Rationale for choice of values: programs often use values < 100 for
    1.33 +   //  their own error reporting.  Values > 255 are sometimes reserved for
    1.34 +   //  system detected errors.  200/201 were suggested to minimize conflict.
    1.35 +
    1.36 +   const int exit_success = EXIT_SUCCESS;  // implementation-defined value
    1.37 +   const int exit_failure = EXIT_FAILURE;  // implementation-defined value
    1.38 +   const int exit_exception_failure = 200; // otherwise uncaught exception
    1.39 +   const int exit_test_failure = 201;      // report_error or
    1.40 +                                           //  report_critical_error called.
    1.41 +}
    1.42 +
    1.43 +#endif
    1.44 +