X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fassert.h;h=e2618a0e964a32ec5e947acf4aafc2ccb5d2fcde;hb=25241f49cbda2d67169a3f072b43ad6bc0b8dba9;hp=0d06472fbdaac089c85cd8c6ad5715460c669e78;hpb=6608f7d9a9a3326666d825de38fdd216a9ddf049;p=pdclib diff --git a/includes/assert.h b/includes/assert.h index 0d06472..e2618a0 100644 --- a/includes/assert.h +++ b/includes/assert.h @@ -1,5 +1,3 @@ -/* $Id$ */ - /* 7.2 Diagnostics This file is part of the Public Domain C Library (PDCLib). @@ -32,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. */