Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

pltrace.cpp

Go to the documentation of this file.
00001 /*
00002 /--------------------------------------------------------------------
00003 |
00004 |      $Id: pltrace.cpp,v 1.1 2004/05/21 21:02:53 maxx Exp $
00005 |
00006 |      Copyright (c) 1996-1998 Ulrich von Zadow
00007 |
00008 \--------------------------------------------------------------------
00009 */
00010 #include "plstdpch.h"
00011 
00012 #ifdef _DEBUG
00013 
00014 #include <stdarg.h>
00015 #include <stdio.h>
00016 
00017 void PLTrace(const char * pszFormat, ...)
00018 {
00019   va_list args;
00020   va_start(args, pszFormat);
00021 
00022   int nBuf;
00023   char szBuffer[4096];
00024 
00025   nBuf = vsprintf(szBuffer, pszFormat, args);
00026   PLASSERT(nBuf < 4096);
00027 
00028 #ifndef _WINDOWS
00029   fprintf (stderr, szBuffer);
00030 #else
00031   ::OutputDebugString (szBuffer);
00032 #endif //_WINDOWS
00033 
00034   va_end(args);
00035 }
00036 
00037 #endif //_DEBUG
00038 
00039 /*
00040 /--------------------------------------------------------------------
00041 |
00042 |      $Log: pltrace.cpp,v $
00043 |      Revision 1.1  2004/05/21 21:02:53  maxx
00044 |      Initial Version of vuVolume, moderatly changed to make it compile on my windows and linux machine.
00045 |
00046 |      Revision 1.1  2002/11/13 01:58:22  mspindle
00047 |      *** empty log message ***
00048 |
00049 |      Revision 1.1  2001/09/16 19:03:22  uzadow
00050 |      Added global name prefix PL, changed most filenames.
00051 |
00052 |      Revision 1.6  2001/09/15 21:02:44  uzadow
00053 |      Cleaned up stdpch.h and config.h to make them internal headers.
00054 |
00055 |      Revision 1.5  2000/01/16 20:43:15  anonymous
00056 |      Removed MFC dependencies
00057 |
00058 |      Revision 1.4  2000/01/10 23:53:00  Ulrich von Zadow
00059 |      Changed formatting & removed tabs.
00060 |
00061 |      Revision 1.3  1999/10/03 18:50:52  Ulrich von Zadow
00062 |      Added automatic logging of changes.
00063 |
00064 |
00065 \--------------------------------------------------------------------
00066 */

Generated on Wed Dec 15 21:20:30 2004 for vuVolume by  doxygen 1.3.9.1