Open Broadcaster Software
Free, open source software for live streaming and recording
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mac-helpers.h
Go to the documentation of this file.
1 #pragma once
2 
3 static bool success_(OSStatus stat, const char *func, const char *call)
4 {
5  if (stat != noErr) {
6  blog(LOG_WARNING, "%s: %s failed: %d",
7  func, call, (int)stat);
8  return false;
9  }
10 
11  return true;
12 }
13 
14 #define success(stat, call) \
15  success_(stat, __FUNCTION__, call)
EXPORT void blog(int log_level, const char *format,...)
Definition: base.h:55