Date: Wednesday, December 27, 2006 @ 16:58:02
Author: marc
Path: /cvsroot/carob/carob/src
Modified: Common.cpp (1.56 -> 1.57)
#error when CAROB_LOG4CXX_NAME is defined with empty body
------------+
Common.cpp | 8 ++++++++
1 files changed, 8 insertions(+)
Index: carob/src/Common.cpp
diff -u carob/src/Common.cpp:1.56 carob/src/Common.cpp:1.57
--- carob/src/Common.cpp:1.56 Wed Dec 27 16:36:48 2006
+++ carob/src/Common.cpp Wed Dec 27 16:58:02 2006
@@ -56,6 +56,14 @@
#ifdef CAROB_LOG4CXX_NAME
+
+// Check that CAROB_LOG4CXX_NAME is not empty
+// gcc expands defined+empty macros to "1".
+#if CAROB_LOG4CXX_NAME == 1
+#error CAROB_LOG4CXX_NAME has an empty definition
+#endif
+// Expanding these to a white string will fail too: good
+
using namespace log4cxx;
// need two steps to delay expansion of argument
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits