[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to
From: |
Michael Dickens |
Subject: |
Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally |
Date: |
Sun, 23 Feb 2014 14:52:20 -0500 |
I'll second what Moritz wrote: Since this pragma is "non standard but widely
supported", let's stick with the header guards since they are guaranteed to
work even with very old C / C++ compilers ... if someone wants to -also- use
this pragma that's fine; having both should not hurt. I'd prefer to not rely
on just the pragma ... my US$0.02 worth, if even that much ;) - MLD
On Feb 23, 2014, at 2:03 PM, Moritz Fischer <address@hidden> wrote:
> some quick Google research found several contradictory sources. [1]
> calls it 'non standard but widely supported'.
> Since we build on weird platforms I think we should make absolutely
> sure that this is the way things should be done ^{TM}.
> Some other sources listed this as a potential speedup for compilation
> on Visual Studio. Discuss.
>
> Personally I don't have an issue with header guards because there
> exist plenty of plugins for {vim,emacs, whatever},
> to do it for you.
- [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Marcus Müller, 2014/02/22
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Moritz Fischer, 2014/02/23
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally,
Michael Dickens <=
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Marcus Müller, 2014/02/23
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Tom Rondeau, 2014/02/27
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Marcus Müller, 2014/02/27
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Martin Braun, 2014/02/28
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Marcus Müller, 2014/02/28
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Martin Braun, 2014/02/28
- Re: [Discuss-gnuradio] Converting from #ifndef/#define include guards to #pragma once globally, Marcus Müller, 2014/02/28