We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I want to use the #error directive to limit the size of a statically allocated array during compilation (it must not exceed a certain limit, and I want to fail compilation, not startup, if it is too large), but I can only work with constant expressions, of course. Is there a way to do this...?
Thanks.
how do you have an array that is larger (the number of elements) than "the amount of RAM the array consumes"
That's an interesting combination of words you've posted there. Is it some sort of answer to the OP's question?