3 // Cassowary Incremental Constraint Solver
4 // Original Smalltalk Implementation by Alan Borning
5 // This C++ Implementation by Greg J. Badros, <gjb@cs.washington.edu>
6 // http://www.cs.washington.edu/homes/gjb
7 // (C) 1998, 1999 Greg J. Badros and Alan Borning
8 // See ../LICENSE for legal details regarding this software
12 #ifndef CASSOWARY_DEBUG_H_
13 #define CASSOWARY_DEBUG_H_
15 #if defined(HAVE_CONFIG_H) && !defined(CONFIG_H_INCLUDED) && !defined(CONFIG_INLINE_H_INCLUDED)
16 #include <cassowary/config-inline.h>
17 #define CONFIG_INLINE_H_INCLUDED
21 #include "Cassowary.h"
26 Tracer(const char *const sz) : sz_(sz) { cerr << "* " << sz; }
27 ~Tracer() { cerr << "x " << sz_ << " exited." << endl; }
29 const char *const sz_;
32 inline void CtrTracer(const char *const sz, const void *pv)
33 { cerr << "@+ " << sz << " ctrnew@ " << pv << endl; }
35 inline void DtrTracer(const char *const sz, const void *pv)
36 { cerr << "@- " << sz << " dtrnew@ " << pv << endl; }
41 Tracer(const char *const) { }
44 inline void CtrTracer(const char *const, const void *) { }
45 inline void DtrTracer(const char *const, const void *) { }