I am writing a code that do some arithmetic on long values and it should NOT generate an overflow exception.
The code needs to be compiled both on windows (visual studio ) and Linux (ARM Linux).
Is there any pragma or compile time directive that I can use to tell the compile that it should not generate an overflow exception for that specific code.
The main point here is:
1- It works both on windows and Linux
2- Irrespective of the general configuration of project, this section should not generate an overflow exception. (so setting a parameter in project is not a good solution).