Original Post
Hi,
my program''s violating the domain of one of the trig functions and I''d like to catch the exception before Windows manages to throw it in my face:
However, the exception is never passed to my own version of _matherr(). I''m a little vague on how the handler must be constructed - must it have some global prototype or does it suffice if I only define the function body in one of the source files (thus clamping the handler''s scope to the file module)?
Thanks,
Crispy
int _matherr(struct exception *e)
{
//not really handling here, just testing if i can catch it
WinError(e->name);
return 1;
}