|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
#include <sys/exceptn.h> void __djgpp_exception_toggle(void);
This function is automatically called when the program exits, to restore handling of all the exceptions to their normal state. You may also call it from your program, around the code fragments where you need to temporarily restore all the exceptions to their default handling. One example of such case might be a call to a library function that spawns a child program, when you don't want to handle signals generated while the child runs (by default, those signals are also passed to the parent).
__djgpp_exception_toggle(); system("myprog"); __djgpp_exception_toggle();
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2004 by DJ Delorie||Updated Apr 2004|