示例#1
0
EXTERN_C void __default_terminate(void)
/*
The default terminate routine, which is just a wrapup around abort().
*/
{
  __abort_execution(ec_terminate_called);
}  /* __default_terminate */
示例#2
0
void PURE_VIRTUAL_FUNCTION_NAME(void)
/*
Notify the user that a call to a pure virtual function has been made and
abort the program.
*/
{
  __abort_execution(ec_pure_virtual_called);
}  /* __pure_virtual */
示例#3
0
EXTERN_C void BAD_TYPEID_ROUTINE_NAME(void)
/*
Throw a bad typeid exception.  If exception handling is not supported in
this version of the runtime, then simply abort.
*/
{
#if EXCEPTION_HANDLING
  throw STD_NAMESPACE::bad_typeid();
#else /* !EXCEPTION_HANDLING */
  __abort_execution(ec_bad_typeid);
#endif /* EXCEPTION_HANDLING */
}  /* BAD_TYPEID_ROUTINE_NAME */
示例#4
0
BAD_CAST_ROUTINE_LINKAGE
void BAD_CAST_ROUTINE_NAME(void)
/*
Throw a bad cast exception.  If exception handling is not supported in
this version of the runtime, then simply abort.
*/
{
#if EXCEPTION_HANDLING
  throw STD_NAMESPACE::bad_cast();
#else /* !EXCEPTION_HANDLING */
  __abort_execution(ec_bad_cast);
#endif /* EXCEPTION_HANDLING */
}  /* BAD_CAST_ROUTINE_NAME */