]>
Dogcows Code - chaz/yoink/blob - src/moof/debug.hh
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
12 #ifndef _MOOF_DEBUG_HH_
13 #define _MOOF_DEBUG_HH_
17 * Debugging facilities.
20 #include <cstdlib> // exit
22 #include <moof/log.hh>
30 * Macro which tests an assertion and issues a log_error() and exits if the
32 * \param X test to perform.
34 #define ASSERT(X) if (!(X)) moof::log_error \
35 << "false assertion at " << __FILE__ << ":" << __LINE__ << ", " \
40 #endif // _MOOF_DEBUG_HH_
This page took 0.035342 seconds and 5 git commands to generate.