gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > assert(0) not working ? in libnds 1.4.0

#172079 - a128 - Wed Jan 13, 2010 3:15 pm

it seems that
Code:
#include <assert.h>

//did I need this to show the assert(0)?!!!
consoleDemoInit();
   
assert(0)


is not working anymore..I know that this worked before

hmm...maybe the bug is in devkitARM_r27 ???

a quick solition I did is re-implementing assert()
http://forum.htsoft.com/all/showflat.php?Cat=&Board=programming&Number=24083&Searchpage=1&Main=24074&Words=+blak3r&topic=&Search=true
which worked


a forum member gave me this hint

use sassert() in libnds at arm9/sassert.h


hmmpf I missed that sassert() but this needs 2 parameters
like sassert(0,"bug")
_________________
"Hey! It compiles! Ship it!"