NO

Author Topic: Assertions with stack-traces  (Read 3312 times)

leandrojardim

  • Guest
Assertions with stack-traces
« on: May 07, 2012, 10:49:04 PM »
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

  • Guest
Re: Assertions with stack-traces
« Reply #1 on: May 10, 2012, 09:38:42 PM »
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... :)