2 ** libCxClient - Citadel/UX Extensible Client API
3 ** Copyright (c) 2000, Flaming Sword Productions
4 ** Copyright (c) 2001, The Citadel/UX Consortium
9 ** Last Revision: 2000-10-15
10 ** Description: Debug functions.
20 #warning "Debugging Mode Enabled. This may not be practical for you..."
23 ** CxDebug(): Output debugging information.
26 ** (#define) DFA: __FILE__, __LINE__, __FUNCTION__.
27 ** (char *) fmt: printf()-style format string.
28 ** ...: Arguments to printf() format.
39 fprintf(stderr,"%% [%s:%d] %s(): ", file, line, function);
40 vfprintf(stderr,fmt,ap);
52 ** CxMalloc(): Allocate memory. Annotate allocation in debug log.
54 void *CxMalloc(int szlen) {
59 DPF((DFA,"MEM/ALC:\t%d\t@0x%08x",szlen, ret));
66 ** CxFree(): Free memory. Annotate deallocation in debug log.
68 void *CxFree(void *obj) {
69 DPF((DFA,"MEM/FRE:\t-1\t@0x%08x",obj));