Message from discussion
conditional compilation
Received: by 10.66.85.71 with SMTP id f7mr1507175paz.39.1344872369284;
Mon, 13 Aug 2012 08:39:29 -0700 (PDT)
Path: c10ni110021pbw.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From: ArbolOne <Arbol...@gmail.com>
Newsgroups: gnu.g++.help
Subject: conditional compilation
Date: Mon, 13 Aug 2012 08:33:48 -0700 (PDT)
Organization: http://groups.google.com
Lines: 7
Message-ID: <ae2c575a-f115-456a-b169-faa27c9c0755@googlegroups.com>
NNTP-Posting-Host: 99.228.43.239
Mime-Version: 1.0
X-Trace: posting.google.com 1344872369 10934 127.0.0.1 (13 Aug 2012 15:39:29 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 13 Aug 2012 15:39:29 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=99.228.43.239;
posting-account=kKiceQoAAADDfv6LjLLDmywW23dyGgcn
User-Agent: G2/1.0
Content-Type: text/plain; charset=ISO-8859-1
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?