Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Enumerations | Functions | Variables
18.exception.cpp File Reference
#include <exception>
#include <ios>
#include <new>
#include <stdexcept>
#include <typeinfo>
#include <csignal>
#include <cstdio>
#include <cstring>
#include <rw/_error.h>
#include <sys/resource.h>
#include <rw_driver.h>
#include <csetjmp>
Include dependency graph for 18.exception.cpp:

Go to the source code of this file.

Data Structures

struct  UncaughtExceptionCheck
 
struct  Base< T >
 
struct  Derived1
 
struct  Derived2< T >
 

Macros

#define RW_JMP_BUF   std::jmp_buf
 
#define RW_SETJMP(env)   std::setjmp (env)
 
#define RW_LONGJMP(env, val)   std::longjmp (env, val)
 
#define MEMFUN(result, T, name, arg_list)
 

Enumerations

enum  RuntimeExceptionId {
  E_bad_alloc , E_bad_cast , E_bad_exception , E_bad_typeid ,
  E_error
}
 

Functions

int main (int argc, char *argv[])
 

Variables

std::unexpected_handler puh
 
std::terminate_handler pth
 
int expect_abort
 
int expect_terminate
 
int expect_unexpected
 
int expect_throw_proc
 
RW_JMP_BUF jmpenv
 

Macro Definition Documentation

◆ MEMFUN

#define MEMFUN (   result,
  T,
  name,
  arg_list 
)
Value:
do { \
result (T::*pf) arg_list _PTR_THROWS (()) = &T::name; \
_RWSTD_UNUSED (pf); \
} while (0)
#define T
Definition 17.names.cpp:163
#define pf
Definition 17.names.cpp:516
#define _PTR_THROWS(spec)
const char * name
Definition codecvt1.cpp:72

◆ RW_JMP_BUF

#define RW_JMP_BUF   std::jmp_buf

exception.cpp - test exercising [lib.support.exception]

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2001-2007 Rogue Wave Software, Inc.

Definition at line 94 of file 18.exception.cpp.

◆ RW_LONGJMP

#define RW_LONGJMP (   env,
  val 
)    std::longjmp (env, val)

Definition at line 100 of file 18.exception.cpp.

◆ RW_SETJMP

#define RW_SETJMP (   env)    std::setjmp (env)

Definition at line 98 of file 18.exception.cpp.

Enumeration Type Documentation

◆ RuntimeExceptionId

Enumerator
E_bad_alloc 
E_bad_cast 
E_bad_exception 
E_bad_typeid 
E_error 

Definition at line 756 of file 18.exception.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 1082 of file 18.exception.cpp.

Variable Documentation

◆ expect_abort

int expect_abort

Definition at line 244 of file 18.exception.cpp.

◆ expect_terminate

int expect_terminate

Definition at line 245 of file 18.exception.cpp.

◆ expect_throw_proc

int expect_throw_proc

Definition at line 247 of file 18.exception.cpp.

◆ expect_unexpected

int expect_unexpected

Definition at line 246 of file 18.exception.cpp.

◆ jmpenv

RW_JMP_BUF jmpenv

Definition at line 248 of file 18.exception.cpp.

◆ pth

Definition at line 243 of file 18.exception.cpp.

◆ puh

Definition at line 242 of file 18.exception.cpp.