]> git.sesse.net Git - vlc/commitdiff
Don't use multiple lines macros in if conditions
authorRafaël Carré <funman@videolan.org>
Thu, 8 May 2008 20:26:24 +0000 (22:26 +0200)
committerRafaël Carré <funman@videolan.org>
Thu, 8 May 2008 20:30:28 +0000 (22:30 +0200)
modules/gui/ncurses.c

index 28cfbd5344cba372a58e97d081f2144f913c4167..f14b5a4ad44ce1bd8477bd77126752ef9a7c9661 100644 (file)
@@ -568,12 +568,16 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
     vlc_value_t val;
     
     #define ReturnTrue \
+    do { \
     vlc_object_release( p_playlist ); \
-    return 1
+    return 1; \
+    } while(0)
     
     #define ReturnFalse \
+    do { \
     vlc_object_release( p_playlist ); \
-    return 0
+    return 0; \
+    } while(0)
 
     playlist_t *p_playlist = pl_Yield( p_intf );