One of the greatest bug squashing tools available to embedded software developers is the assert macro. Despite the power of assert, I rarely see it implemented and in the cases where it is used the implementation is either flawed or incorrect. The following seven tips should help elucidate not only when and where to use … Continue reading 7 Tips for using assertions in C
Tag: assertions
Tips and Tricks – When to ASSERT or not ASSERT …
that is the question. The use of assertions often confuses even the most experienced developers. Developers should be considering whether the expression they are going to ASSERT is a potential bug condition or whether it is an attempt to trap an error. An error in this case would be a run-time condition that should be … Continue reading Tips and Tricks – When to ASSERT or not ASSERT …