1 PARA How to use the DUMP facilities;;
4 -------------------------------------------------------
9 struct STRUCTNAME* next;
11 -------------------------------------------------------
13 then you define a function like:
16 -------------------------------------------------------
18 nobug_STRUCTNAME_dump (const struct STRUCTNAME* self,
24 // check for self != NULL and that the depth
25 // limit did not exceed in recursive datastructures
28 // use DUMP_LOG not LOG to print the data
29 DUMP_LOG("STRUCTNAME %p: int is %d, string is %s", self,
32 // now recurse with decremented depth
33 nobug_STRUCTNAME_dump (self->next, depth-1, file, line, func);
36 -------------------------------------------------------
38 now you can use the DUMP() macros within the code
41 -------------------------------------------------------
44 struct STRUCTNAME foo;
46 DUMP (my_flag, STRUCTNAME, &foo, 2);
48 -------------------------------------------------------