Cryptography Reference
In-Depth Information
Translated with GNU gcc byacallto
gcc -fhandle-exceptions -DLINT_EX divex.cpp flintpp.cpp flint.c -lstdc++
the program produces, in addition to the error message of the function panic() ,
the following output:
LINT-Exception:
division by zero in operator/function /
module: flintpp.cpp, line: 402
division by zero in module divex.cpp, line 17
The significant difference between this and standard error handling without
exceptions is that we discover by means of the catch routine where the error
was actually caused, namely in line 17 of the module divex.cpp , even though it
was discovered somewhere else entirely, namely in the module flintpp.cpp .For
debugging large programs this is an extremely helpful source of information.
Search WWH ::




Custom Search