This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems with error handling


Although this is a reference manual, we should add a note for disabling the
aborting event handler at that example. Could it be that there are a lot of *
missing in the error handler section?

gsl_error_handler_t -> gsl_error_handler_t* as in the header file?


Daniel Rohe schrieb:
> 
> ok, once more the solution to the problem is: rtfm. in order to continue
> the program the default error handler
> must be switched of:
> 
> quote from manual:
> 
> _Function:_ gsl_error_handler_t *gsl_set_error_handler_off* /()/
>     This function turns off the error handler by defining an error
>     handler which does nothing. This will cause the program to continue
>     after any error, so the return values from any library routines must
>     be checked. This is the recommended behavior for production
>     programs. The previous handler is returned (so that you can restore
> it later).
> 
> daniel
>
Index: err.texi
===================================================================
RCS file: /cvs/gsl/gsl/doc/err.texi,v
retrieving revision 1.39
diff -r1.39 err.texi
93a94
> gsl_error_handler_t *previous_handler=gsl_set_error_handler_off();
112a114,115
> Please note, that you have to change the default error handler, see next
> section for details.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]