>> Refinements of the concept left as an exercise for the reader. Regards,
>>
>
> Does that mean I am not allowed to post my refinements?

No.  Please post.  Extra points for using __FILE__ __FUNCITON__ and
__LINE__ to give meaningful error message.

Digging out my old issue of Embedded Systems on Compile Time Assertions
we find this:
http://www.eetimes.com/discussion/programming-pointers/4025549/Catching-errors-early-with-compile-time-assertions

One thing to watch out for in some of the examples I've seen is in C99
a zero length variable array could be created.

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to