1
/* vim: set ts=4 sts=4 sw=4 expandtab textwidth=92: */
3
* This is free software; you can redistribute it and/or modify it under
4
* the terms of the GNU Library General Public License as published by
5
* the Free Software Foundation; either version 2 of the License, or
6
* (at your option) any later version.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* General Public License for more details.
13
* You should have received a copy of the GNU Library General Public
14
* License along with this program; if not, write to the Free Software
15
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
#include <tilda-config.h>
28
* Add -DDEBUG to your compile options to turn on assert()s.
30
* If you do not have the DEBUG symbol defined, then asserts will
31
* be turned off and compiled into a noop.
40
#define DEBUG_ASSERT assert
42
#define DEBUG_ERROR(ERRMSG) g_printerr("*** DEVELOPER ERROR *** at %s:%d" \
43
" -> %s\n", __FILE__, __LINE__, (ERRMSG))
51
#define DEBUG_ASSERT assert
53
#define DEBUG_ERROR(ERRMSG) {}
59
* Add -DDEBUG_FUNCTIONS to your compile options to turn on function tracing.
61
* If you do not have the DEBUG_FUNCTIONS symbol defined, then function tracing will
62
* be turned off and compiled into a noop.
67
#define DEBUG_FUNCTION(NAME) g_printerr("FUNCTION ENTERED: %s\n", (NAME))
71
#define DEBUG_FUNCTION(NAME) {}
75
/* A macro that calls perror() with a consistent header string */
76
#define TILDA_PERROR() perror("tilda")