Original Post
Hey,
I''ve made a little assert macro/function that works pretty well. It works like this.
Assert(expression);
If expression==false, it pops up a messagebox saying "Assert failed! File: filename, Line: linenumber". All is good there. But it asks if you want to break or continue. I tried using advice from a book like so.
#define Break() { _asm { int 3 } }
They say it will break. Mind you all of this stuff is enabled only in a debug compile. I am using codewarrior, and was wondering how to break in it. The code above is said to work, but it may only be for msvcpp. It crashes in mine. Anyone have any ideas?
Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"