comp.lang.ada
 help / color / mirror / Atom feed
* setjmp/longjmp?
@ 2003-09-28 15:33 chris
  2003-09-28 17:12 ` setjmp/longjmp? Simon Wright
  2003-09-28 18:19 ` setjmp/longjmp? Jeff C,
  0 siblings, 2 replies; 11+ messages in thread
From: chris @ 2003-09-28 15:33 UTC (permalink / raw)


Hi,

I started a binding to libpng so I can load some images into OpenGL, but 
the library uses setjmp and longjmp for error handling.  This is very 
new to me but from what I understand it's some form of library "goto" 
which allows code to jump to predefined points on given events.  When 
dealing with such things is it best to wrap around the code with C and 
catch all these longjmps with setjmps, returning error flags if 
something fails?


Thanks,
Chris




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-10-16  1:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-28 15:33 setjmp/longjmp? chris
2003-09-28 17:12 ` setjmp/longjmp? Simon Wright
2003-09-28 20:54   ` setjmp/longjmp? chris
2003-09-28 18:19 ` setjmp/longjmp? Jeff C,
2003-09-28 18:49   ` setjmp/longjmp? chris
2003-09-28 19:10     ` setjmp/longjmp? Jeff C,
2003-09-28 19:14       ` setjmp/longjmp? Jeff C,
2003-09-28 21:01         ` setjmp/longjmp? chris
2003-09-29 20:17         ` setjmp/longjmp? Randy Brukardt
2003-09-29 23:04           ` setjmp/longjmp? Matthew Heaney
2003-10-16  1:49             ` setjmp/longjmp? Randy Brukardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox