This is the mail archive of the guile@cygnus.com mailing list for the guile project.


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

How to use scm_internal_catch?



Hi,

I want to catch scm errors with a c function to override the default
print-error-message-and-exit behaviour. I found out that scm_internal_catch
is used for this, but I can't figure out how. Can somebody please write me a
very short example program that 
 - sets up an error handler
 - tries to evaluate a "buggy" scheme script
 - prints the error BUT doesn't exit
 
I'm not on the mailing list, please reply me directly.

Thanks,
Pista