Assertions with stack-traces

Started by leandrojardim, May 07, 2012, 10:49:04 PM

Previous topic - Next topic

leandrojardim

Assertions could have a wider usability in  the C language if in the time the assertion is throw, the stack-trace of the call-stack is printed on the screen, preferably going to the IDE debugger too.

I would love to use assertions everywhere in my program, but today I use them only for testing for NULL parameters given in the start of a function. There is no way to us to find where the bug originated from, a big lack of information for the majority types of programs.

leandrojardim

Really I did not see that Pelles C RC2 already does this. It is a great work, Pelle, I think that you read my mind... :)