Commit 4e36d3b5 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Derk-Jan Hartman

Macro protection.

(cherry picked from commit 6f7a1d4d)
parent 8cb547f5
......@@ -57,8 +57,8 @@ mediacontrol_RGBPicture *private_mediacontrol_createRGBPicture( int, int, long,
#define RAISE( c, m ) if( exception ) { exception->code = c; \
exception->message = strdup(m); }
#define RAISE_NULL( c, m ) { RAISE( c, m ); return NULL; }
#define RAISE_VOID( c, m ) { RAISE( c, m ); return; }
#define RAISE_NULL( c, m ) do{ RAISE( c, m ); return NULL; } while(0)
#define RAISE_VOID( c, m ) do{ RAISE( c, m ); return; } while(0)
#define HANDLE_LIBVLC_EXCEPTION_VOID( e ) if( libvlc_exception_raised( e ) ) { \
RAISE( mediacontrol_InternalException, libvlc_exception_get_message( e )); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment