[vlc-commits] playlist: use standard C syntax for variadic macros
Rémi Denis-Courmont
git at videolan.org
Tue Aug 21 18:53:05 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 21 19:42:39 2012 +0300| [d1bf94c10ea0e5187e80cabe832e87b43903aca4] | committer: Rémi Denis-Courmont
playlist: use standard C syntax for variadic macros
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1bf94c10ea0e5187e80cabe832e87b43903aca4
---
src/playlist/playlist_internal.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/playlist/playlist_internal.h b/src/playlist/playlist_internal.h
index c1a006a..7c78254 100644
--- a/src/playlist/playlist_internal.h
+++ b/src/playlist/playlist_internal.h
@@ -160,15 +160,15 @@ void ResyncCurrentIndex( playlist_t *p_playlist, playlist_item_t *p_cur );
//#undef PLAYLIST_DEBUG2
#ifdef PLAYLIST_DEBUG
- #define PL_DEBUG( msg, args... ) msg_Dbg( p_playlist, msg, ## args )
+ #define PL_DEBUG( ... ) msg_Dbg( p_playlist, __VA_ARGS__ )
#ifdef PLAYLIST_DEBUG2
- #define PL_DEBUG2( msg, args... ) msg_Dbg( p_playlist, msg, ## args )
+ #define PL_DEBUG2( msg, ... ) msg_Dbg( p_playlist, __VA_ARGS__ )
#else
- #define PL_DEBUG2( msg, args... ) {}
+ #define PL_DEBUG2( msg, ... ) {}
#endif
#else
- #define PL_DEBUG( msg, args ... ) {}
- #define PL_DEBUG2( msg, args... ) {}
+ #define PL_DEBUG( msg, ... ) {}
+ #define PL_DEBUG2( msg, ... ) {}
#endif
#define PLI_NAME( p ) p && p->p_input ? p->p_input->psz_name : "null"
More information about the vlc-commits
mailing list