help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

conditional compilation


From: ArbolOne
Subject: conditional compilation
Date: Mon, 13 Aug 2012 08:33:48 -0700 (PDT)
User-agent: G2/1.0

I'd like to know how to tell C++ that if it is VC++ it should compiler this 
line or if it is GCC it should compile another line, i.e.
if GCC
#define  FUNCTION  __PRETTY_FUNCTION__
if MSVC
#define  FUNCTION  __func__

any body?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]