Playlist Generator  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
Defines | Functions
CADebugMacros.h File Reference
#include <CoreAudio/CoreAudioTypes.h>

Go to the source code of this file.

Defines

#define CA4CCToCString(the4CC)   { ((char*)&the4CC)[3], ((char*)&the4CC)[2], ((char*)&the4CC)[1], ((char*)&the4CC)[0], 0 }
#define CACopy4CCToCString(theCString, the4CC)   { theCString[0] = ((char*)&the4CC)[3]; theCString[1] = ((char*)&the4CC)[2]; theCString[2] = ((char*)&the4CC)[1]; theCString[3] = ((char*)&the4CC)[0]; theCString[4] = 0; }
#define DebugMessage(msg)
#define DebugMessageN1(msg, N1)
#define DebugMessageN2(msg, N1, N2)
#define DebugMessageN3(msg, N1, N2, N3)
#define DebugMessageN4(msg, N1, N2, N3, N4)
#define DebugMessageN5(msg, N1, N2, N3, N4, N5)
#define DebugMessageN6(msg, N1, N2, N3, N4, N5, N6)
#define DebugMessageN7(msg, N1, N2, N3, N4, N5, N6, N7)
#define DebugMessageN8(msg, N1, N2, N3, N4, N5, N6, N7, N8)
#define DebugMessageN9(msg, N1, N2, N3, N4, N5, N6, N7, N8, N9)
#define DEBUGPRINT(msg)
#define vprint(msg)
#define STOP
#define Assert(inCondition, inMessage)
#define AssertNoError(inError, inMessage)
#define AssertNoKernelError(inError, inMessage)
#define FailIf(inCondition, inHandler, inMessage)
#define FailWithAction(inCondition, inAction, inHandler, inMessage)
#define FailIfNULL(inPointer, inAction, inHandler, inMessage)
#define FailIfKernelError(inKernelError, inAction, inHandler, inMessage)
#define FailIfError(inError, inAction, inHandler, inMessage)

Functions

void LogError (const char *fmt,...)
void LogWarning (const char *fmt,...)

Define Documentation

#define Assert (   inCondition,
  inMessage 
)
Value:
if(!(inCondition))                                                                                                                      \
                        {                                                                                                                                                       \
                                STOP;                                                                                                                                   \
                        }
#define AssertNoError (   inError,
  inMessage 
)
Value:
{                                                                                                                                                       \
                                SInt32 __Err = (inError);                                                                                               \
                                if(__Err != 0)                                                                                                                  \
                                {                                                                                                                                               \
                                        STOP;                                                                                                                           \
                                }                                                                                                                                               \
                        }
#define AssertNoKernelError (   inError,
  inMessage 
)
Value:
{                                                                                                                                                       \
                                unsigned int __Err = (unsigned int)(inError);                                                   \
                                if(__Err != 0)                                                                                                                  \
                                {                                                                                                                                               \
                                        STOP;                                                                                                                           \
                                }                                                                                                                                               \
                        }
#define CA4CCToCString (   the4CC)    { ((char*)&the4CC)[3], ((char*)&the4CC)[2], ((char*)&the4CC)[1], ((char*)&the4CC)[0], 0 }
#define CACopy4CCToCString (   theCString,
  the4CC 
)    { theCString[0] = ((char*)&the4CC)[3]; theCString[1] = ((char*)&the4CC)[2]; theCString[2] = ((char*)&the4CC)[1]; theCString[3] = ((char*)&the4CC)[0]; theCString[4] = 0; }
#define DebugMessage (   msg)
#define DebugMessageN1 (   msg,
  N1 
)
#define DebugMessageN2 (   msg,
  N1,
  N2 
)
#define DebugMessageN3 (   msg,
  N1,
  N2,
  N3 
)
#define DebugMessageN4 (   msg,
  N1,
  N2,
  N3,
  N4 
)
#define DebugMessageN5 (   msg,
  N1,
  N2,
  N3,
  N4,
  N5 
)
#define DebugMessageN6 (   msg,
  N1,
  N2,
  N3,
  N4,
  N5,
  N6 
)
#define DebugMessageN7 (   msg,
  N1,
  N2,
  N3,
  N4,
  N5,
  N6,
  N7 
)
#define DebugMessageN8 (   msg,
  N1,
  N2,
  N3,
  N4,
  N5,
  N6,
  N7,
  N8 
)
#define DebugMessageN9 (   msg,
  N1,
  N2,
  N3,
  N4,
  N5,
  N6,
  N7,
  N8,
  N9 
)
#define DEBUGPRINT (   msg)
#define FailIf (   inCondition,
  inHandler,
  inMessage 
)
Value:
if(inCondition)                                                                                                                         \
                        {                                                                                                                                                       \
                                STOP;                                                                                                                                   \
                                goto inHandler;                                                                                                                 \
                        }
#define FailIfError (   inError,
  inAction,
  inHandler,
  inMessage 
)
Value:
if((inError) != 0)                                                                                                                      \
                        {                                                                                                                                                       \
                                STOP;                                                                                                                                   \
                                { inAction; }                                                                                                                   \
                                goto inHandler;                                                                                                                 \
                        }
#define FailIfKernelError (   inKernelError,
  inAction,
  inHandler,
  inMessage 
)
Value:
if((inKernelError) != 0)                                                                                                        \
                        {                                                                                                                                                       \
                                STOP;                                                                                                                                   \
                                { inAction; }                                                                                                                   \
                                goto inHandler;                                                                                                                 \
                        }
#define FailIfNULL (   inPointer,
  inAction,
  inHandler,
  inMessage 
)
Value:
if((inPointer) == NULL)                                                                                                         \
                        {                                                                                                                                                       \
                                STOP;                                                                                                                                   \
                                { inAction; }                                                                                                                   \
                                goto inHandler;                                                                                                                 \
                        }
#define FailWithAction (   inCondition,
  inAction,
  inHandler,
  inMessage 
)
Value:
if(inCondition)                                                                                                                         \
                        {                                                                                                                                                       \
                                STOP;                                                                                                                                   \
                                { inAction; }                                                                                                                   \
                                goto inHandler;                                                                                                                 \
                        }
#define STOP
#define vprint (   msg)

Function Documentation

void LogError ( const char *  fmt,
  ... 
)
void LogWarning ( const char *  fmt,
  ... 
)