Hello Chester,
Thank you. The trick is awesome.
I finally use this macro,
#define COMPILE_STATIC_ASSERT(test) typedef char assertion_on_mystruct[(!!( test ))*2-1 ]
I expect the static_assert feature can be implemented in new C2000 compiler release.
Hello Chester,
Thank you. The trick is awesome.
I finally use this macro,
#define COMPILE_STATIC_ASSERT(test) typedef char assertion_on_mystruct[(!!( test ))*2-1 ]
I expect the static_assert feature can be implemented in new C2000 compiler release.