Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #8302 > unrolled thread
| Started by | Nephi Immortal <immortalnephi@gmail.com> |
|---|---|
| First post | 2011-07-28 17:36 -0700 |
| Last post | 2011-08-07 18:13 +0000 |
| Articles | 2 on this page of 22 — 13 participants |
Back to article view | Back to comp.lang.c++
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
Page 2 of 2 — ← Prev page 1 [2]
| From | James Kanze <james.kanze@gmail.com> |
|---|---|
| Date | 2011-08-07 10:47 -0700 |
| Message-ID | <033c58e9-2c21-4c37-bdcd-dc582a0090af@h7g2000yqm.googlegroups.com> |
| In reply to | #8331 |
On Jul 30, 1:58 pm, Jorgen Grahn <grahn+n...@snipabacken.se> wrote: > On Sat, 2011-07-30, MJ_India wrote: > > On Jul 29, 9:36 am, Nephi Immortal <immortalne...@gmail.com> wrote: > ... > > 1. #ifdef DEMO_H is masking all the code of file demo.h > > Are you sure you don't want to write > > #ifndef DEMO_H > > #define DEMO_H > > .... > > #endif > > [Prefer to use #pragma once instead of ifndef guards] > That last sentence -- is that supposed to be an advice? I've never > seen anything other than the include guard stuff you described above. > And my compiler (g++) doesn't seem to have a pragma named "once". It's very bad advice. (Although I seem to recall that #pragma once does work with g++. G++ makes a certain effort to be compatible with VC++---even to the point of being bug compatible.) #pragma (regardless of which one) is only for things which are only relevant to a single compiler. -- James Kanze
[toc] | [prev] | [next] | [standalone]
| From | Marc <marc.glisse@gmail.com> |
|---|---|
| Date | 2011-08-07 18:13 +0000 |
| Message-ID | <j1mkjv$5us$1@news-rocq.inria.fr> |
| In reply to | #8546 |
James Kanze wrote: > #pragma (regardless of which one) is only for > things which are only relevant to a single compiler. That may be true in C++, but it isn't in C which defines a number of standard pragmas.
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.c++
csiph-web