I
Immortal Nephi
Do you have a better way to add namespace to the macro function? I
researched do while statement. I found out that do while statement
treats like a real function in assertion source code.
#define MhiddenFunction() \
do \
{ \
( void ) sizeof( 0 ); \
\
__pragma( warning( push ) ); \
__pragma( warning( disable: 4127 ) ); \
} \
while( false ); \
__pragma( warning( pop ) )
If I add namespace name, then C++ Compiler will fail to compile
because the statement looks like
::group::do
{
….
} while( false );
researched do while statement. I found out that do while statement
treats like a real function in assertion source code.
#define MhiddenFunction() \
do \
{ \
( void ) sizeof( 0 ); \
\
__pragma( warning( push ) ); \
__pragma( warning( disable: 4127 ) ); \
} \
while( false ); \
__pragma( warning( pop ) )
If I add namespace name, then C++ Compiler will fail to compile
because the statement looks like
::group::do
{
….
} while( false );