#define return(R,G,B) {return D3DCOLOR_COLORVALUE(R,G,B);}
int NormalReturn ( )
{
return 0; // Uses the return keyword.
}
int D3DReturn ( )
{
return( 1, 0, 0.5 ); // Uses the return macro.
}
I don''t use that exact code, that''s just a simple example. But I''m curious as to how people feel about this code. Is it bad code design? The Visual C++ 6.0 compiler allows it with no warnings, I don''t know about other compilers though. Is it technically ANSI-uncompatible?
~CGameProgrammer( );