]> pd.if.org Git - pdclib/blobdiff - includes/assert.h
Static assert macro, config sanity checks
[pdclib] / includes / assert.h
index 349c866f05ccde2664460bd164311d12d5f5d5eb..e2618a0e964a32ec5e947acf4aafc2ccb5d2fcde 100644 (file)
@@ -30,6 +30,12 @@ _PDCLIB_BEGIN_EXTERN_C
 void _PDCLIB_assert99( char const * const, char const * const, char const * const );
 void _PDCLIB_assert89( char const * const );
 
+#if _PDCLIB_C_VERSION >= 2011
+#define static_assert _Static_assert
+#else
+#define static_assert( e, m )
+#endif
+
 #endif
 
 /* If NDEBUG is set, assert() is a null operation. */