comparison debug.h @ 1494:da095983a60b

Move DEBUG_TRACE to default_options
author Matt Johnston <matt@ucc.asn.au>
date Wed, 14 Feb 2018 00:24:44 +0800
parents 750ec4ec4cbe
children 5916af64acd4
comparison
equal deleted inserted replaced
1493:72fd994fe7bd 1494:da095983a60b
30 /* Debugging */ 30 /* Debugging */
31 31
32 /* Work well for valgrind - don't clear environment, be nicer with signals 32 /* Work well for valgrind - don't clear environment, be nicer with signals
33 * etc. Don't use this normally, it might cause problems */ 33 * etc. Don't use this normally, it might cause problems */
34 /* #define DEBUG_VALGRIND */ 34 /* #define DEBUG_VALGRIND */
35
36 /* Define this to compile in trace debugging printf()s.
37 * You'll need to run programs with "-v" to turn this on.
38 *
39 * Caution: Don't use this in an unfriendly environment (ie unfirewalled),
40 * since the printing may not sanitise strings etc. This will add a reasonable
41 * amount to your executable size. */
42 #ifndef DEBUG_TRACE
43 #define DEBUG_TRACE 0
44 #endif
45 35
46 /* All functions writing to the cleartext payload buffer call 36 /* All functions writing to the cleartext payload buffer call
47 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're 37 * CHECKCLEARTOWRITE() before writing. This is only really useful if you're
48 * attempting to track down a problem */ 38 * attempting to track down a problem */
49 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \ 39 /*#define CHECKCLEARTOWRITE() assert(ses.writepayload->len == 0 && \