1 // 20000810 Brent Verner <brent@rcfile.org>
3 // Copyright (C) 2000 Free Software Foundation, Inc.
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 2, or (at your option)
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23 // This file is included in the various testsuite programs to provide
24 // #define(able) assert() behavior for debugging/testing. It may be
25 // a suitable location for other furry woodland creatures as well.
28 // If you find yourself compiling small test progs as much as I
29 // do, you can move this file to a location your compiler(s)
30 // will find, and possibly add more cheap debugging stuff...
33 #ifndef _CPP_DEBUG_ASSERT_H
34 #define _CPP_DEBUG_ASSERT_H
38 # define VERIFY(fn) assert(fn)
41 # define VERIFY(fn) test &= (fn)
42 // should we define this here to make sure no 'unexpected' failures
43 // happen, or do we require that it be defined in any scope where
44 // the VERIFY macro is used???
46 // static bool test = true;
50 #endif // _CPP_DEBUG_ASSERT_H