comparison debug.h @ 107:d3eb1fa8484e

Nasty.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 24 Aug 2004 18:12:18 +0000
parents c85c88500ea6
children 2e9d1f29c50f
comparison
equal deleted inserted replaced
106:e13f8a712a1c 107:d3eb1fa8484e
36 /* Define this to compile in trace debugging printf()s. You'll need to 36 /* Define this to compile in trace debugging printf()s. You'll need to
37 * run programs with "-v" to turn this on. 37 * run programs with "-v" to turn this on.
38 * Caution: Don't use this in an unfriendly environment (ie unfirewalled), 38 * Caution: Don't use this in an unfriendly environment (ie unfirewalled),
39 * since the printing may not sanitise strings etc. This will add a reasonable 39 * since the printing may not sanitise strings etc. This will add a reasonable
40 * amount to your executable size. */ 40 * amount to your executable size. */
41 /* #define DEBUG_TRACE */ 41 #define DEBUG_TRACE
42 42
43 /* All functions writing to the cleartext payload buffer call 43 /* All functions writing to the cleartext payload buffer call
44 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're 44 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're
45 * attempting to track down a problem */ 45 * attempting to track down a problem */
46 #define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ 46 #define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \