To think ... there I programmed for a long time in an environment with MFC using ASSERT () when it seemed OK, and only today I (was) came across VERIFY Macro:
http://msdn.microsoft.com/en-us/ library / fcatwy09% 28v = VS.71% 29.aspx
This is basically the same as ASSERT (), except that the expression will not be deleted in the release builds (there will be validation, but the expression will still be evaluated).
#ifdef _DEBUG
#define VERIFY(f) ASSERT(f)
#else
#define VERIFY(f) ((void)(f))
I see several uses for this, but I was wondering if others would use it regularly in their code base, and if someone saw any side effects of using it.
greetings.
source
share