Only allow allow rotations by a constant amount.
[official-gcc.git] / libstdc++-v3 / testsuite / debug_assert.h
blobdbd6e98405692a8e4434245dd305afe41475156e
1 // 20000810 Brent Verner <brent@rcfile.org>
2 //
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 //
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)
9 // any later version.
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,
19 // USA.
22 // Purpose:
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.
27 // Notes:
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
36 #ifdef DEBUG_ASSERT
37 # include <cassert>
38 # define VERIFY(fn) assert(fn)
40 #else
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;
47 #endif
50 #endif // _CPP_DEBUG_ASSERT_H