exception

来自「realview22.rar」· 代码 · 共 65 行

TXT
65
字号
/*
 * C++ Library file exception
 * Copyright 2001 ARM Limited. All rights reserved.
 */

/*
 * RCS $Revision: 1.12 $
 * Checkin $Date: 2004/06/30 10:06:17 $
 * Revising $Author: sdouglas $
 */

#ifndef _EXCEPTION
#define _EXCEPTION

/* Edison Design Group, 1995. */
/*
exception -- Include file for exception handling (see 18.6)
*/

namespace std {

/* This lets users disable the EDG supplied exception classes. */
#ifndef __NO_EDG_EXCEPTION_CLASSES

  class exception {
  public:
      exception() throw();
      exception(const exception&) throw();
    exception& operator=(const exception&) throw();
    virtual ~exception() throw();
    virtual const char* what() const throw();
  };

  class bad_exception : public exception {
  public:
      bad_exception() throw();
      bad_exception(const bad_exception&) throw();
    bad_exception& operator=(const bad_exception&) throw();
    virtual ~bad_exception() throw();
    virtual const char* what() const throw();
  };

#endif /* ifndef __NO_EDG_EXCEPTION_CLASSES */

  typedef void (*terminate_handler)();
  extern terminate_handler set_terminate(terminate_handler) throw();

  typedef void (*unexpected_handler)();
  extern unexpected_handler set_unexpected(unexpected_handler) throw();

  void terminate();
  void unexpected();

  extern bool uncaught_exception() throw();

}  /* namespace std */

#ifdef __EDG_IMPLICIT_USING_STD
/* Implicitly include a using directive for the STD namespace when this
   preprocessing flag is TRUE. */
using namespace ::std;
#endif /* ifdef __EDG_IMPLICIT_USING_STD */

#endif /* _EXCEPTION */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?