Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #107768
| 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 | 2017-04-05 13:46 -0700 |
| Organization | None to speak of |
| Message-ID | <lnzifuzipi.fsf@kst-u.example.com> (permalink) |
| References | <eaeb380d-00bf-4156-bfac-f79acc47753e@googlegroups.com> |
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