Path: chuka.playstation.co.uk!news From: "Steve Dunn" Newsgroups: scea.yaroze.programming.codewarrior,scee.yaroze.programming.codewarrior Subject: Re: C++ and 'exit' Date: Tue, 17 Mar 1998 13:43:59 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 45 Message-ID: <6eluo8$dud31@chuka.playstation.co.uk> References: <6e9fbt$6nq7@chuka.playstation.co.uk> NNTP-Posting-Host: userl049.uk.uudial.com X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Xref: chuka.playstation.co.uk scea.yaroze.programming.codewarrior:302 scee.yaroze.programming.codewarrior:200 I tried that and I got... asm{"break 0"}; 'Error: end of line expected' with the underscore under after the first opening brace. Cheers Steve >The "exit()" method isn't supported in the PlayStation libraries. You can >call it but it will just crash your program (though, you may want this in >an Assert). Otherwise, just write your own such as > >void exit(int code) >{ > printf("Exit called with code %i! Program halted.\n",code); > asm{"break 0"}; >} > >In article <6e9fbt$6nq7@chuka.playstation.co.uk>, "Steve Dunn" > wrote: > >>Hello everyone. >> >>Can someone tell me where 'exit(x)' is >>defined in a C++ project ? I've got my >>own assert macro and would like to >>'exit' the program on an assert. >> >>Cheers >> >>Steve > >-- >PlayStation Development Tools Dude >Metrowerks