One very general question is if anybody can explain when/how to use the assert(expr) macro (from assert.h).......
Next, what do setjmp() and longjmp() do? I have a vague idea that they somehow save the addresses of all automatic variables, as well as other variables currently saved in memory. However, when is it that such saving of the heap(?) is necessary, and how are these functions called?....
any explanation is appreciated.
thanks
Next, what do setjmp() and longjmp() do? I have a vague idea that they somehow save the addresses of all automatic variables, as well as other variables currently saved in memory. However, when is it that such saving of the heap(?) is necessary, and how are these functions called?....
any explanation is appreciated.
thanks