r336 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Sep 20 00:45:49 EDT 2007


Author: icculus
Date: 2007-09-20 00:45:49 -0400 (Thu, 20 Sep 2007)
New Revision: 336

Modified:
   trunk/universal.h
Log:
Improved STUBBED macro a little.


Modified: trunk/universal.h
===================================================================
--- trunk/universal.h	2007-09-15 06:05:37 UTC (rev 335)
+++ trunk/universal.h	2007-09-20 04:45:49 UTC (rev 336)
@@ -310,18 +310,17 @@
 #endif
 #endif  // DOXYGEN_SHOULD_IGNORE_THIS
 
-#if 1
+#ifndef DOXYGEN_SHOULD_IGNORE_THIS
 #define STUBBED(x) \
-{ \
+do { \
     static boolean seen_this = false; \
     if (!seen_this) \
     { \
         seen_this = true; \
-        fprintf(stderr, "STUBBED: %s at %s:%d\n", x, __FILE__, __LINE__); \
+        fprintf(stderr, "STUBBED: %s at %s (%s:%d)\n", x, __FUNCTION__, \
+                __FILE__, __LINE__); \
     } \
-}
-#else
-#define STUBBED(x)
+} while (false)
 #endif
 
 #define STATICARRAYLEN(x) ( (sizeof ((x))) / (sizeof ((x)[0])) )




More information about the mojosetup-commits mailing list