yolobs-studio/libobs/audio-monitoring/osx/mac-helpers.h

16 lines
282 B
C
Raw Normal View History

2017-04-15 19:02:06 +00:00
#pragma once
static bool success_(OSStatus stat, const char *func, const char *call)
{
if (stat != noErr) {
blog(LOG_WARNING, "%s: %s failed: %d",
func, call, (int)stat);
return false;
}
return true;
}
#define success(stat, call) \
success_(stat, __FUNCTION__, call)