96 #ifdef PA_ENABLE_DEBUG_OUTPUT
97 #define PA_DEBUG(x) PaUtil_DebugPrint x ;
103 #ifdef PA_LOG_API_CALLS
104 #define PA_LOGAPI(x) PaUtil_DebugPrint x
106 #define PA_LOGAPI_ENTER(functionName) PaUtil_DebugPrint( functionName " called.\n" )
108 #define PA_LOGAPI_ENTER_PARAMS(functionName) PaUtil_DebugPrint( functionName " called:\n" )
110 #define PA_LOGAPI_EXIT(functionName) PaUtil_DebugPrint( functionName " returned.\n" )
112 #define PA_LOGAPI_EXIT_PAERROR( functionName, result ) \
113 PaUtil_DebugPrint( functionName " returned:\n" ); \
114 PaUtil_DebugPrint("\tPaError: %d ( %s )\n", result, Pa_GetErrorText( result ) )
116 #define PA_LOGAPI_EXIT_T( functionName, resultFormatString, result ) \
117 PaUtil_DebugPrint( functionName " returned:\n" ); \
118 PaUtil_DebugPrint("\t" resultFormatString "\n", result )
120 #define PA_LOGAPI_EXIT_PAERROR_OR_T_RESULT( functionName, positiveResultFormatString, result ) \
121 PaUtil_DebugPrint( functionName " returned:\n" ); \
123 PaUtil_DebugPrint("\t" positiveResultFormatString "\n", result ); \
125 PaUtil_DebugPrint("\tPaError: %d ( %s )\n", result, Pa_GetErrorText( result ) )
128 #define PA_LOGAPI_ENTER(functionName)
129 #define PA_LOGAPI_ENTER_PARAMS(functionName)
130 #define PA_LOGAPI_EXIT(functionName)
131 #define PA_LOGAPI_EXIT_PAERROR( functionName, result )
132 #define PA_LOGAPI_EXIT_T( functionName, resultFormatString, result )
133 #define PA_LOGAPI_EXIT_PAERROR_OR_T_RESULT( functionName, positiveResultFormatString, result )
void(* PaUtilLogCallback)(const char *log)
Definition: pa_debugprint.h:137
void PaUtil_SetDebugPrintFunction(PaUtilLogCallback cb)
Definition: pa_debugprint.c:68
void PaUtil_DebugPrint(const char *format,...)
Definition: pa_debugprint.c:88