comparison debug.h @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents a90fdd2d2ed8 da095983a60b
children e05c0e394f1d
comparison
equal deleted inserted replaced
1457:32f990cc96b1 1511:5916af64acd4
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 && \