decklink: Add some newlines in long defines

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4738>
This commit is contained in:
Sebastian Dröge 2023-06-01 15:17:26 +03:00 committed by Sebastian Dröge
parent 72e7ae724f
commit ab582a3b7d

View file

@ -60,7 +60,11 @@
CFRelease(_s); \ CFRelease(_s); \
} G_STMT_END } G_STMT_END
#define FREE_COM_STRING(s) free(s); #define FREE_COM_STRING(s) free(s);
#define CONVERT_TO_COM_STRING(s) G_STMT_START { char * _s = (char *)s; s = CFStringCreateWithCString(kCFAllocatorDefault, _s, kCFStringEncodingUTF8); g_free(_s); } G_STMT_END #define CONVERT_TO_COM_STRING(s) G_STMT_START { \
char * _s = (char *)s; \
s = CFStringCreateWithCString(kCFAllocatorDefault, _s, kCFStringEncodingUTF8); \
g_free(_s); \
} G_STMT_END
#define WINAPI #define WINAPI
#else /* Linux */ #else /* Linux */
#include "linux/DeckLinkAPI.h" #include "linux/DeckLinkAPI.h"