62d335f9f201ecbf38af64d507510c5315ad8024
[senf.git] / senf / Utils / senfassert.hh
1 // $Id$
2 //
3 // Copyright (C) 2008
4 // Fraunhofer Institute for Open Communication Systems (FOKUS)
5 // Competence Center NETwork research (NET), St. Augustin, GERMANY
6 //     Stefan Bund <g0dil@berlios.de>
7 //
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the
20 // Free Software Foundation, Inc.,
21 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
23 /** \file
24     \brief senfassert public header */
25
26 #ifndef HH_SENF_Utils_senfassert_
27 #define HH_SENF_Utils_senfassert_ 1
28
29 // Custom includes
30
31 //#include "senfassert.mpp"
32 //-/////////////////////////////////////////////////////////////////////////////////////////////////
33
34 #ifndef SENF_DEBUG
35
36 #   define SENF_ASSERT(x, comment)
37 #   define SENF_ASSERT_EXPRESSION(expression, comment) expression
38
39 #else
40
41 #   include <cassert>
42 #   define SENF_ASSERT(x, comment) assert((x) && comment)
43 #   define SENF_ASSERT_EXPRESSION(expression, comment) assert((expression) && comment)
44
45 #endif
46
47 //-/////////////////////////////////////////////////////////////////////////////////////////////////
48 //#include "senfassert.cci"
49 //#include "senfassert.ct"
50 //#include "senfassert.cti"
51 #endif
52
53 \f
54 // Local Variables:
55 // mode: c++
56 // fill-column: 100
57 // comment-column: 40
58 // c-file-style: "senf"
59 // indent-tabs-mode: nil
60 // ispell-local-dictionary: "american"
61 // compile-command: "scons -u test"
62 // End: