Code: Select all
#include <assert.h>
//did I need this to show the assert(0)?!!!
consoleDemoInit();
assert(0);
Code: Select all
#include <assert.h>
//did I need this to show the assert(0)?!!!
consoleDemoInit();
assert(0);
ok..thanks sassert() is kind of assert() but it takes an additional paramtervuurrobin wrote:maybe you're confusing assert with libnds's sassert().
http://libnds.devkitpro.org/a00097.html
I suggest you try that.
Code: Select all
#include <nds.h>
#include <stdio.h>
#include <assert.h>
// function to pause on exit, called on non zero exit code
void systemErrorExit(int rc) {
printf("exit with code %d\n",rc);
while(1) {
swiWaitForVBlank();
scanKeys();
if (keysDown() & KEY_A) break;
}
}
//---------------------------------------------------------------------------------
int main(int argc, char **argv) {
//---------------------------------------------------------------------------------
consoleDemoInit();
assert(0);
while(1) {
swiWaitForVBlank();
scanKeys();
if (keysDown() & KEY_X) break;
}
return 42;
}
Users browsing this forum: No registered users and 2 guests