source: projectionDesigner/trunk/projdesigner/include/gmtl/Util/Assert.h @ 289

Last change on this file since 289 was 4, checked in by Torben Dannhauer, 15 years ago
File size: 1.6 KB
RevLine 
[4]1/************************************************************** ggt-head beg
2 *
3 * GGT: Generic Graphics Toolkit
4 *
5 * Original Authors:
6 *   Allen Bierbaum
7 *
8 * -----------------------------------------------------------------
9 * File:          Assert.h,v
10 * Date modified: 2004/02/23 17:11:06
11 * Version:       1.2
12 * -----------------------------------------------------------------
13 *
14 *********************************************************** ggt-head end */
15/*************************************************************** ggt-cpr beg
16*
17* GGT: The Generic Graphics Toolkit
18* Copyright (C) 2001,2002 Allen Bierbaum
19*
20* This library is free software; you can redistribute it and/or
21* modify it under the terms of the GNU Lesser General Public
22* License as published by the Free Software Foundation; either
23* version 2.1 of the License, or (at your option) any later version.
24*
25* This library is distributed in the hope that it will be useful,
26* but WITHOUT ANY WARRANTY; without even the implied warranty of
27* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28* Lesser General Public License for more details.
29*
30* You should have received a copy of the GNU Lesser General Public
31* License along with this library; if not, write to the Free Software
32* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33*
34 ************************************************************ ggt-cpr end */
35#ifndef GMTL_ASSERT_H
36#define GMTL_ASSERT_H
37
38// -- VERY simple assertion stuff -- //
39#ifdef _DEBUG
40#   include <assert.h>
41#   define gmtlASSERT(val) assert((val))
42#else
43#   define gmtlASSERT(val) ((void)0)
44#endif
45
46
47#endif
Note: See TracBrowser for help on using the repository browser.