Comment by scraptor
5 years ago
The code has to be structured entirely differently for this optimisation to be possible. If the code was restructured without marking the optimisation as mandatory the code would break in debug mode (as it would quickly blow the stack)
Yes, without the attribute the only option is to use macros to generate different code in debug mode, which is possible but far from ideal.