rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 28e9f03fd196c4336cb12625c05d6607b1d46489
parent 84a40cdec0eb49475274d1a4572df84a915641fe
Author: vaplv <vaplv@free.fr>
Date:   Thu, 19 Mar 2015 08:36:41 +0100

Fix the STATIC_ASSERT definition

Diffstat:
Msrc/rsys.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rsys.h b/src/rsys.h @@ -122,7 +122,8 @@ #endif #define STATIC_ASSERT(Cond, Msg) \ - char STATIC_ASSERT_##Msg[1 - 2*(!(Cond))] __attribute__((unused)) + static char CONCAT(CONCAT(CONCAT(STATIC_ASSERT_, COUNTER), _), Msg) \ + [1 - 2*(!(Cond))] __attribute__((unused)) #define FATAL(Msg) \ { \