Modified the UGetCursor() routine to return a valid response if the
[xcircuit.git] / spiceparser / debug.h
blob746b2d5093bb9c5a4b3cf01337929f8f42009bc4
1 /********************
2 This file is part of the software library CADLIB written by Conrad Ziesler
3 Copyright 2003, Conrad Ziesler, all rights reserved.
5 *************************
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program 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
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 ******************/
21 /* debug.h, header controlling inclusion of debugging code, specifically dmalloc
22 Conrad Ziesler
27 #include <stdlib.h>
28 #include <malloc.h>
29 #include <string.h>
30 #include <memory.h>
32 #include <assert.h>
34 #ifndef CONFIGURED
35 #define DEBUG
36 #endif
39 #ifdef DEBUG
40 #include <dmalloc.h>
41 #endif
43 void *cmdline_read_rc(int *p_argc, char ***p_argv, char *path);
44 void cmdline_free_rc(void *p);
46 #ifdef PRODUCTION
47 #define DEBUG_CMDLINE(c,v,s) NULL
48 #else
49 #define DEBUG_CMDLINE(c,v,s) cmdline_read_rc(&c,&v,s)
50 #endif