Is it good programming practice to use setjmp and longjmp in C?

前端 未结 8 2016
误落风尘
误落风尘 2021-02-07 10:28

I\'m a C++ programmer and used to OO languages with good exception handling.

From what I can understand, setjmp and longjmp are essentially a c-style way to propogate ex

8条回答
  •  春和景丽
    2021-02-07 11:17

    setjmp/longjmp is a useful way to implement an own exception-handling in pure C. http://sourceware.org/pthreads-win32/announcement.html

提交回复
热议问题