gnucash maint: Add a TODO note for variadic macros after C++2a standardization

Frank H.Ellenberger fell at code.gnucash.org
Sun Feb 18 05:39:03 EST 2018


Updated	 via  https://github.com/Gnucash/gnucash/commit/c6cbac58 (commit)
	from  https://github.com/Gnucash/gnucash/commit/1999d853 (commit)



commit c6cbac588ea1f5a8b8ae001f9c8ad94dd5d373a2
Author: fell <frank.h.ellenberger at gmail.com>
Date:   Sun Feb 18 11:38:54 2018 +0100

    Add a TODO note for variadic macros after C++2a standardization

diff --git a/src/libqof/qof/qoflog.h b/src/libqof/qof/qoflog.h
index f3762ad..d052b29 100644
--- a/src/libqof/qof/qoflog.h
+++ b/src/libqof/qof/qoflog.h
@@ -172,6 +172,11 @@ void qof_log_set_default(QofLogLevel log_level);
 /* Microsoft Visual Studio: MSVC compiler has a different syntax for
  * macros with variadic argument list. */
 
+/* TODO: After the C++2a feature __VA_OPT__ gets implemented in both
+ * flavors, it should be inserted before __VA_ARGS__ and the else branch
+ * gets obsolete and should be removed.
+ */
+
 /** Log a fatal error */
 #define FATAL(format, ...) do { \
     g_log (log_module, G_LOG_LEVEL_ERROR, \



Summary of changes:
 src/libqof/qof/qoflog.h | 5 +++++
 1 file changed, 5 insertions(+)



More information about the gnucash-changes mailing list