|
From: David M. <dml...@co...> - 2004-11-25 21:23:10
|
Same way with any C/C++ compiler #include <assert.h> or #include <cassert> and assert(<condition>); If the condition is true the program continues on it's merry way, if the condition is false then the program terminates (mosre specifically using the exit() function) Water Cooler wrote: > How do you make assertions in C code using the Visual C++ 6.0 > compiler? > > ------------------------------------------------------------------------ > Do you Yahoo!? > Yahoo! Mail > <http://us.rd.yahoo.com/mail_us/taglines/security/*http://promotions.yahoo.com/new_mail/static/protection.html> > - You care about security. So do we. |