* Matthieu CASTET <matthieu.castet@xxxxxxxxxx> schrieb: > >How does it do that compile-time numeric comparison ? > > > for example you could do > > int test[my comparaison]; > > if my comparaison < 0, the compilation should abort. Cool trick :) So, eg if you find out wether some type has an specific size: int foo[(sizeof(int) == 4)?1:-1]; But: the question is whether you'll need such a test at all or if just using sizeof() at the right place won't do the trick ;-P (yes, I've came around lots of packages where this was the case!) cu -- --------------------------------------------------------------------- Enrico Weigelt == metux IT service - http://www.metux.de/ --------------------------------------------------------------------- Please visit the OpenSource QM Taskforce: http://wiki.metux.de/public/OpenSource_QM_Taskforce Patches / Fixes for a lot dozens of packages in dozens of versions: http://patches.metux.de/ --------------------------------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe linux-embedded" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html