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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
275 B
C
Raw Normal View History

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