void lst_debug_print_tree (LST_STree *tree); #define D_PRINT_TREE (tree) char* lst_debug_print_substring (LST_String *string, u_int start_index, u_int end_index, u_int extra_index); #define lst_stderr (...) #define D (x) #define D_ASSERT (exp, msg) #define D_ASSERT_PTR (ptr) |
void lst_debug_print_tree (LST_STree *tree); |
We make this always available, not only with -DDEBUG.
tree to print.
#define D_PRINT_TREE(tree) |
This is just a wrapper around lst_debug_print_tree(), so nothing will be printed if debugging isn't enabled.
tree to print.
char* lst_debug_print_substring (LST_String *string, u_int start_index, u_int end_index, u_int extra_index); |
#define D(x) |
Use this macro to output debugging information. x is the content as you would pass it to printf(), including braces to make the arguments appear as one argument to the macro. The macro is automatically deleted if -DDEBUG is not passed at build time.
debugging information.
#define D_ASSERT(exp, msg) |
The macro outputs msg if the expression exp evaluates to FALSE.
expression to evaluate.
message to output if exp fails.