This shows how a runtime error check routine of your own making can be easily incorporated so that it doesn't generate any code overhead when it is turned off.