home *** CD-ROM | disk | FTP | other *** search
- #ifndef __HeapGraph_Debug_h
- #define __HeapGraph_Debug_h
-
- /*
- This header effectively prototypes the following function:
-
- void HeapGraph_Debug_Printf( char *, ...);
-
- */
-
-
- #ifdef HEAPGRAPH_DEBUG
-
- #ifndef __HeapGraph_Sendf_h
- #include "Sendf.h"
- #endif
- #define HeapGraph_Debug_Printf HeapGraph__Sendf
-
-
-
- #else
-
- #ifndef __HeapGraph_Dummyf_h
- #include "Dummyf.h"
- #endif
-
- #define HeapGraph_Debug_Printf if(0) HeapGraph_Dummyf
- /* This should optimise out, unless you're making a DDT */
- /* version with cc -g */
-
- #endif
-
-
-
-
-
-
-
-
- #define Debug_Printf HeapGraph_Debug_Printf
- /* A bit easier to type... */
-
-
-
- /*
-
- If you #include this header and predefine HEAPGRAPH_DEBUG in your
- makefile, you can send debugging info to pipe:C_Debug.xxxx with
- Debug_Printf( ...). If you don't predefine HEAPGRAPH_DEBUG, all
- Debug_Printf calls will be ignored by the compiler, so you can put loads
- of Debug_Printf's in your code and make a normal and a debug version
- from the same source code.
-
- */
-
-
- #endif
-