Path: chuka.playstation.co.uk!scea!sumner From: sumner@austin.metrowerks.com (Joel Sumner) Newsgroups: scea.yaroze.programming.codewarrior,scee.yaroze.programming.codewarrior Subject: Re: C++ and 'exit' Date: Mon, 16 Mar 1998 10:43:57 -0600 Organization: Metrowerks Lines: 27 Message-ID: References: <6e9fbt$6nq7@chuka.playstation.co.uk> NNTP-Posting-Host: mtwks150.metrowerks.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Yet Another NewsWatcher 2.4.0 Xref: chuka.playstation.co.uk scea.yaroze.programming.codewarrior:301 scee.yaroze.programming.codewarrior:199 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