1 PARA How to use the DUMP facilities;;
4 -------------------------------------------------------
9 struct STRUCTNAME* next;
11 -------------------------------------------------------
13 Thereafter, define a funcion as follows:
16 -------------------------------------------------------
18 nobug_STRUCTNAME_dump (const struct STRUCTNAME* self,
20 const struct nobug_context context,
23 /* check for self != NULL and that the depth limit
24 was not exceeded in recursive data structures */
27 /* you may or may not do something with the extra
28 parameter here, extra is transparently
32 /* use DUMP_LOG not LOG to print the data */
33 DUMP_LOG("STRUCTNAME %p: int is %d, string is %s", self,
37 /* now recurse while decrementing depth */
38 nobug_STRUCTNAME_dump (self->next,
44 -------------------------------------------------------
46 Now you can use the DUMP() macros within the code
49 -------------------------------------------------------
52 struct STRUCTNAME foo;
55 /* extra can be anything,
56 NULL is suggested when you don't use it */
57 DUMP (my_flag, STRUCTNAME, &foo, 2, NULL);
59 -------------------------------------------------------