/*================================================================================================== CADebugPrintf.c $Log: CADebugPrintf.cpp,v $ Revision 1.3 2005/01/25 19:37:54 luke add newline at EOF Revision 1.2 2004/11/12 23:29:26 jcm10 make sure the log file is only openned once and print a header in it Revision 1.1 2004/08/25 02:26:02 jcm10 first checked in Revision 0.0 8/24/04 5:25:39 PM moorf Created $NoKeywords: $ ==================================================================================================*/ //================================================================================================== // Includes //================================================================================================== // Self Include #include "CADebugPrintf.h" #if DEBUG || CoreAudio_Debug #if defined(CoreAudio_UseSideFile) #include FILE* sDebugPrintfSideFile = NULL; extern "C" void OpenDebugPrintfSideFile() { if(sDebugPrintfSideFile == NULL) { char theFileName[1024]; sprintf(theFileName, CoreAudio_UseSideFile, getpid()); sDebugPrintfSideFile = fopen(theFileName, "a+"); DebugPrintfRtn(DebugPrintfFile, "\n------------------------------\n"); } } #endif #endif