assert

using a simple assert() macro

I'm new to programming & i found this code when i was going through a book. I believe it gives an example of how to use a defined assert() macro. It doesn't compile on code::blocks 10.05. I get errors such as '#' is not followed by a macro parameter unterminated #else in function 'int main()' 'ASSERT' was not declared in this scope C...

ASSERTS during the termination of an MFC application

If an ASSERT fires once ExitInstance() has entered, any ASSERT will, I assume, throw a structured exception, thus skipping the rest of the code in ExitInstance(). Can anyone shed a little light on this? ...