Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions | Variables
0.outputiter.cpp File Reference
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
#include <rw_alg_test.h>
#include <rw_value.h>
#include <rw_driver.h>
Include dependency graph for 0.outputiter.cpp:

Go to the source code of this file.

Macros

#define FAIL(code)
 
#define PASS(code)
 

Functions

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

Variables

int exit_status
 
int line
 
int fail
 
jmp_buf env
 

Macro Definition Documentation

◆ FAIL

#define FAIL (   code)
Value:
fail = line = __LINE__; \
signal (SIGABRT, handle_ABRT); \
if (0 == setjmp (env)) { \
code; \
exit_status = 1; \
rw_assert (0, 0, line, "expected assertion"); \
} \
else \
(void)0
int line
int fail
int exit_status
void handle_ABRT(int)
jmp_buf env
#define setjmp
Definition _csetjmp.h:52
#define SIGABRT

Definition at line 61 of file 0.outputiter.cpp.

◆ PASS

#define PASS (   code)
Value:
fail = -1; line = __LINE__; \
signal (SIGABRT, handle_ABRT); \
if (0 == setjmp (env)) \
code; \
else if (fail != line) { \
exit_status = 1; \
rw_assert (0, 0, line, "unexpected assertion"); \
} (void)0

Definition at line 72 of file 0.outputiter.cpp.

Function Documentation

◆ handle_ABRT()

void handle_ABRT ( int  )

Definition at line 52 of file 0.outputiter.cpp.

◆ main()

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

Definition at line 331 of file 0.outputiter.cpp.

Variable Documentation

◆ env

jmp_buf env

Definition at line 50 of file 0.outputiter.cpp.

◆ exit_status

int exit_status

0.outputiter.cpp - test exercising the OutputIter class template

$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 1994-2005 Rogue Wave Software.

Definition at line 43 of file 0.outputiter.cpp.

◆ fail

int fail

Definition at line 48 of file 0.outputiter.cpp.

◆ line

int line

Definition at line 47 of file 0.outputiter.cpp.