void tracePrintPrefix(const char * szFunction) { if (!isTraced()) return; debugIndent(); fprintf(stderr,"[%s][at %lu] ",szFunction,getInputLineNumber()); }
void tracePrint(const char * szFunction,const char * szFormat,...) { debugIndent(); fprintf(stderr,"[%s][at %lu] ",szFunction,getInputLineNumber()); va_list va; va_start(va,szFormat); vfprintf(stderr,szFormat,va); va_end(va); fprintf(stderr,"\n"); }
void traceLeave(const char * szFunction,const char * szFormat,...) { if (!isTraced()) return; debugDec(); debugIndent (); fprintf(stderr,"[<< %s][at %lu] ",szFunction,getInputLineNumber()); va_list va; va_start(va,szFormat); vfprintf(stderr,szFormat,va); va_end(va); fprintf(stderr,"\n"); }