Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #107768
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Keith Thompson <kst-u@mib.org> |
| Newsgroups | comp.lang.c |
| Subject | Re: What are these functions (warning, push, disable) are in the macro definition? |
| Date | Wed, 05 Apr 2017 13:46:01 -0700 |
| Organization | None to speak of |
| Lines | 29 |
| Message-ID | <lnzifuzipi.fsf@kst-u.example.com> (permalink) |
| References | <eaeb380d-00bf-4156-bfac-f79acc47753e@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Info | mx02.eternal-september.org; posting-host="84b9d2e2596144cadf213abc805aa2ec"; logging-data="1966"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eh2/jSkx1ezbBUbry981B" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
| Cancel-Lock | sha1:rNMXVy0L/yzF6RhgaBhK/kTFW1c= sha1:qp2KMNDA3IJUWB7Cz0kMz5lq8N4= |
| Xref | csiph.com comp.lang.c:107768 |
Show key headers only | View raw
fl <rxjwg98@gmail.com> writes:
> I have a MSVC project which has the following definitions. It builds
> successfully on MSVC, but I don't understand what warning, push, pop
> and disable are.
[...]
>
> .........................
> #if DSAS_MSVC
> #define DSAS_MULTILINE_MACRO_END \
> __pragma( warning( push ) ) \
> __pragma( warning( disable:4127 ) ) \
> } \
> while( 0 ) \
> __pragma( warning( pop ) )
> #else /* #if DSAS_MSVC */
> #define DSAS_MULTILINE_MACRO_END \
> } \
> while ( 0 )
> #endif
This is a non-standard feature of MSVC, documented here:
https://msdn.microsoft.com/en-us/library/2c8f766e.aspx
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What are these functions (warning, push, disable) are in the macro definition? fl <rxjwg98@gmail.com> - 2017-04-05 07:49 -0700 Re: What are these functions (warning, push, disable) are in the macro definition? scott@slp53.sl.home (Scott Lurndal) - 2017-04-05 15:25 +0000 Re: What are these functions (warning, push, disable) are in the macro definition? Keith Thompson <kst-u@mib.org> - 2017-04-05 13:46 -0700 Re: What are these functions (warning, push, disable) are in the macro definition? Ken Brody <kenbrody@spamcop.net> - 2017-04-06 11:38 -0400
csiph-web