Wrapping the function is what I'd do to - then you don't need the #ifdef crap littering your code.
Just make one function that's share and that wraps Msg()/DevMsg()/Warning()/whatever. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jorge Rodriguez Sent: Sunday, February 03, 2008 13:51 To: [email protected] Subject: Re: [hlcoders] Editting Msg(...) -- [ Picked text/plain from multipart/alternative ] Alternatively, offhand, void MyMsg( const tchar* pMsg, ... ) { tchar szMsg[1024]; va_list args; va_start( args, pMsgFormat ); vsnprintf( szMsg, sizeof(szMsg) - 1, pMsg, args ); va_end(args); #ifdef CLIENT_DLL Msg( "C: " ); #else Msg( "S: " ); #endif Msg( szMsg ); } #define Msg MyMsg (Note: I never actually built this code and I don't know how well it would work.) -- Jorge "Vino" Rodriguez -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

