r321 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Jun 1 06:31:58 EDT 2007
Author: icculus
Date: 2007-06-01 06:31:58 -0400 (Fri, 01 Jun 2007)
New Revision: 321
Modified:
trunk/universal.h
Log:
In case I need this later...
Modified: trunk/universal.h
===================================================================
--- trunk/universal.h 2007-06-01 07:08:41 UTC (rev 320)
+++ trunk/universal.h 2007-06-01 10:31:58 UTC (rev 321)
@@ -58,6 +58,16 @@
#define ISPRINTF(x,y)
#endif
+// Compiler-enforced sentinel safety helper.
+// This is appended to function declarations that use sentinel-style semantics,
+// and will make sure your passed the right params to "..." where a NULL
+// is needed at the end of the list.
+#ifdef __GNUC__
+#define ISSENTINEL __attribute__((sentinel))
+#else
+#define ISSENTINEL
+#endif
+
// Command line access outside of main().
extern int GArgc;
extern const char **GArgv;
More information about the mojosetup-commits
mailing list