source: trunk/MagicSoft/Simulation/Detector/include-GENERAL/jcdebug.h@ 14342

Last change on this file since 14342 was 300, checked in by harald, 25 years ago
A very small change in the jcdebug.h file to compile it under linux.
File size: 1.3 KB
Line 
1/**********************************************************************
2 **********************************************************************
3 * jcdebug
4 *
5 * Created: Mon Jan 12 12:36:19 1998
6 * Author.: Jose Carlos Gonzales
7 * Notes..:
8 *
9 **********************************************************************
10 **********************************************************************/
11
12// @T \newpage
13
14// @section Source code of {\tt jcdebug.h}
15
16/* Begin */
17
18#ifndef __JC_DEBUG__
19#define __JC_DEBUG__
20
21
22#ifdef __DEBUG__
23
24// @code
25
26int DBGi;
27
28#define DBGvec(a,n,m) {puts("DBG> vector " #a);\
29 for(DBGi=n;DBGi<=m;DBGi++)\
30 printf(" " #a "[%d] = %e \012",\
31 DBGi, (a[DBGi]));\
32 puts("");}
33
34#define DBG(a) { printf("DBG> " #a " = %g\n", (a)); }
35#define DBGi(a) { printf("DBG> " #a " = %d\n", (a)); }
36#define DBGmsg(m) { puts("DBG> " #m); }
37
38#else // not __DEBUG__
39
40#define DBGvec(a,n,m)
41#define DBG(a)
42#define DBGi(a)
43#define DBGmsg(m)
44
45#endif // not __DEBUG__
46
47
48#endif // __JC_DEBUG__
49
50// @endcode
51
52/* End */
53
54
Note: See TracBrowser for help on using the repository browser.