Page 1 of 1

Using assert();

Posted: Thu Apr 23, 2009 6:56 pm
by Sylus101
Hello everyone,

I'm new to the use of assert(). I have included <assert.h> and understand how the condition works, but what is supposed to happen when an assertion fails? At this point, I just get a blank screen...

Re: Using assert();

Posted: Fri Apr 24, 2009 12:16 am
by weirdfox
use "sassert" from nds/arm9/sassert.h

Code: Select all

sassert(condition, "error message");
This version will stop the software and print the message on the screen with the condition that failed.