36 #ifndef __glumysetjmp_h_
37 #define __glumysetjmp_h_
41 extern "C" JumpBuffer *newJumpbuffer(
void );
42 extern "C" void deleteJumpbuffer(JumpBuffer *);
43 extern "C" void mylongjmp( JumpBuffer *,
int );
44 extern "C" int mysetjmp( JumpBuffer * );
48 #define setjmp gl_setjmp
49 #define longjmp gl_longjmp
52 #if defined(LIBRARYBUILD) || defined(GLBUILD)
63 return (JumpBuffer *) malloc(
sizeof( JumpBuffer ) );
67 deleteJumpbuffer(JumpBuffer *jb)
73 mylongjmp( JumpBuffer *j,
int code )
75 ::longjmp( j->buf, code );
79 mysetjmp( JumpBuffer *j )
81 return setjmp( j->buf );