D
Duncan Smith
Last week, I got reports back of errors in a patch I let someone try
out (release dll, but not from the build machine). Turns out it was
some Debug::Assert statements firing.
In umanaged code, I'd always understood that assertions were only
fired in debug builds and would compile down to NOPs in release builds
(for good reasons)
Now it looks as though I have to be careful to code assertions
conditionally?
#ifdef _DEBUG
Debug::Assert( false );
#endif
as opposed to
ASSERT( FALSE );
What's the thinking behind the change?
Regards,
Duncan
out (release dll, but not from the build machine). Turns out it was
some Debug::Assert statements firing.
In umanaged code, I'd always understood that assertions were only
fired in debug builds and would compile down to NOPs in release builds
(for good reasons)
Now it looks as though I have to be careful to code assertions
conditionally?
#ifdef _DEBUG
Debug::Assert( false );
#endif
as opposed to
ASSERT( FALSE );
What's the thinking behind the change?
Regards,
Duncan