Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
core
Debug.hh
Go to the documentation of this file.
1
2
// Include this *only* in .cc files. Then define DEBUG in such .cc file
3
// to enable debugging. Use DEBUGLN to wrap around statements which should
4
// only execute when debugging is active.
5
6
#ifdef DEBUG
7
#pragma message("DEBUG enabled for " DEBUG)
8
static
bool
debug_stop =
false
;
9
#define DEBUGLN(ln) if(!debug_stop) { ln; }
10
#define DEBUGSTOP(fl) { debug_stop = fl; }
11
#else
12
#define DEBUGLN(ln)
13
#define DEBUGSTOP(fl)
14
#endif
Generated on Fri Aug 15 2025 13:29:03 for Cadabra by
1.9.8