Fix bug in PRINT() macro
authorDavid Schleef <ds@schleef.org>
Tue, 13 May 2003 05:47:04 +0000 (05:47 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 13 May 2003 05:47:04 +0000 (05:47 +0000)
Original commit message from CVS:
Fix bug in PRINT() macro

common
gst/parse/parse.l

diff --git a/common b/common
index c5d7301..5cca5dd 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit c5d7301d645fbee2881c30e86152cb3d2152e33b
+Subproject commit 5cca5ddc23e23658e8287f7c2fbc4aebddaf3e12
index 75e50b8..4474287 100644 (file)
 #endif
 
 #ifdef G_HAVE_ISO_VARARGS
-#  ifdef GST_DEBUG_ENABLED
-#    define PRINT(...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "__VA_ARGS__)
-#  endif
+#define PRINT(...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "__VA_ARGS__)
 #elif defined(G_HAVE_GNUC_VARARGS)
-#  ifdef GST_DEBUG_ENABLED
-#    define PRINT(...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "##args)
-#  endif
+#define PRINT(args...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "##args)
 #else
-#  ifdef GST_DEBUG_ENABLED
-#    define PRINT(a...) GST_DEBUG (GST_CAT_PIPELINE, "flex: "##a)
-#  endif
-#endif /* G_HAVE_ISO_VARARGS */
+#define PRINT(args...)
+#endif
 
 #define YY_DECL int _gst_parse_yylex (YYSTYPE *lvalp)
 %}