diff --git a/EZAudio/EZAudioUtilities.m b/EZAudio/EZAudioUtilities.m index 82402dad..ecdc74f5 100644 --- a/EZAudio/EZAudioUtilities.m +++ b/EZAudio/EZAudioUtilities.m @@ -537,10 +537,12 @@ + (void)checkResult:(OSStatus)result operation:(const char *)operation // no, format it as an integer sprintf(errorString, "%d", (int)result); fprintf(stderr, "Error: %s (%s)\n", operation, errorString); +#if DEBUG if (__shouldExitOnCheckResultFail) { exit(-1); } +#endif } //------------------------------------------------------------------------------