November 2, 2005

VC8: _assert is never used anymore

After digging a little bit in the CRT-source files, I found that the _assert function is normaly never called anymore! Instead only the UNICODE-enabled _wassert is called (regardless of your project settings!).

This has one big improvement: Every string will be displayed with the correct name, even if they contain non-ANSI characters (for example the source-filename). It will also output the message to the console via WriteConsoleW, so it can also display UNICODE names in the console!

The _assert function is only called from the _wassert for OSes which have no build-in UNICODE-support (Win9x/Me)


Posted 2 years, 2 months ago on November 2, 2005
The trackback url for this post is http://blog.kalmbachnet.de/bblog/trackback.php/52/

Comments have now been turned off for this post