How to stop executing program/halt the CPU
One of our project has problem, not easy to find, because of nonregularity of occuring in unknow part of code (it hasnt been reproduced in controlled way). I would like to write macro, that will replace every call of problematic part of code (which is called in a lot of different places in code) by additional if() statement, that will prevent from doing unallowed things by writing through console name of file and number of line in case of error and halt the processor (I dont want to keep running this program after error). How can I stop executing program?
Or maybe there is anothere way to do something like this?
Regards,
