Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #8367

Re: Macro does not work in source code.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: Macro does not work in source code.
Date Mon, 01 Aug 2011 10:55:27 +1200
Lines 21
Message-ID <99m4qvFaa6U2@mid.individual.net> (permalink)
References <44d8e695-c63d-4453-b405-4902416f265c@h14g2000yqd.googlegroups.com> <a8c4ce00-099e-4f48-b731-a3d8ed41ee82@j37g2000prh.googlegroups.com> <slrnj37vuq.gtj.grahn+nntp@frailea.sa.invalid> <87r557n5fu.fsf@gmail.com> <7a284$4e357ef3$506c0d9c$25382@news.chello.at> <slrnj3b7pb.gtj.grahn+nntp@frailea.sa.invalid> <j14m3v$3i9$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net E5h2CExl5dVigfdJ6DQHIgEVFrCk8eoL1QpRLURyHBZiXDq3OO
Cancel-Lock sha1:+3fap+Q0OmqPoQPC6D2ITomCWxo=
User-Agent Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4
In-Reply-To <j14m3v$3i9$1@dont-email.me>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:8367

Show key headers only | View raw


On 08/ 1/11 10:48 AM, Alf P. Steinbach wrote:
>
> No, "#pragma once" is not an MS thing.
>
> And as I'm testing now MinGW g++ 4.x supports "#pragma once".
>
> It's a de facto standard: AFAIK the C++ standardization committee is the
> only actor who has not adopted it.
>
> <url: http://gcc.gnu.org/onlinedocs/gcc-2.95.3/cpp_1.html#SEC8>
> <url: http://en.wikipedia.org/wiki/Pragma_once>
>
> However, the GNU docs references above says "#pragma once" is obsolete.
>
> That's a pretty weird statement.

Not really, the compiler can perform the same optimisations with include 
guards.

-- 
Ian Collins

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Macro does not work in source code. Nephi Immortal <immortalnephi@gmail.com> - 2011-07-28 17:36 -0700
  Re: Macro does not work in source code. Sam <sam@email-scan.com> - 2011-07-28 20:41 -0500
  Re: Macro does not work in source code. red floyd <no.spam.here@its.invalid> - 2011-07-28 23:45 -0700
    Re: Macro does not work in source code. Juha Nieminen <nospam@thanks.invalid> - 2011-07-29 10:01 +0000
      Re: Macro does not work in source code. "Alf P. Steinbach" <alf.p.steinbach:usenet@gmail.com> - 2011-07-29 13:31 +0200
  Re: Macro does not work in source code. MJ_India <mail.mohitjain@gmail.com> - 2011-07-29 23:41 -0700
    Re: Macro does not work in source code. Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-07-30 12:58 +0000
      Re: Macro does not work in source code. Brian Casiello <bcasiello@gmail.com> - 2011-07-30 11:39 -0400
        Re: Macro does not work in source code. Paul Brettschneider <paul.brettschneider@yahoo.fr> - 2011-07-31 18:12 +0200
          Re: Macro does not work in source code. Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-07-31 18:30 +0000
            Re: Macro does not work in source code. "Alf P. Steinbach" <alf.p.steinbach:usenet@gmail.com> - 2011-08-01 00:48 +0200
              Re: Macro does not work in source code. "Alf P. Steinbach" <alf.p.steinbach:usenet@gmail.com> - 2011-08-01 00:52 +0200
                Re: Macro does not work in source code. Paul Brettschneider <paul.brettschneider@yahoo.fr> - 2011-08-01 08:58 +0200
                Re: Macro does not work in source code. "Alf P. Steinbach" <alf.p.steinbach:usenet@gmail.com> - 2011-08-01 10:11 +0200
                Re: Macro does not work in source code. James Kanze <james.kanze@gmail.com> - 2011-08-07 11:00 -0700
                Re: Macro does not work in source code. "Alf P. Steinbach" <alf.p.steinbach:usenet@gmail.com> - 2011-08-07 22:50 +0200
                Re: Macro does not work in source code. Ian Collins <ian-news@hotmail.com> - 2011-08-08 09:15 +1200
                Re: Macro does not work in source code. Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-01 12:09 +0000
                Re: Macro does not work in source code. Miles Bader <miles@gnu.org> - 2011-08-02 14:53 +0900
              Re: Macro does not work in source code. Ian Collins <ian-news@hotmail.com> - 2011-08-01 10:55 +1200
      Re: Macro does not work in source code. James Kanze <james.kanze@gmail.com> - 2011-08-07 10:47 -0700
        Re: Macro does not work in source code. Marc <marc.glisse@gmail.com> - 2011-08-07 18:13 +0000

csiph-web