"osmium" <r1********@com cast.net> writes:
"ramu" wrote: Can anyone tell me about pragma? And can u give an example of how
to use it?
http://en.wikipedia.org/wiki/Pragma
I wouldn't advise using that article as a source of information about
C's "#pragma". The term "pragma" is a fairly general term for a
compiler directive. The article uses C's "#include" directive as an
example; that's certainly a compiler directive, but it's not a pragma
in the sense that C uses the word.
In C90, the language defines the #pragma construct, but all pragmas
are implementation-defined.
In C99, there are several language defined #pragmas:
#pragma STDC FP_CONTRACT ...
#pragma STDC FENV_ACCESS ...
#pragma STDC CX_LIMITED RANGE ...
where the argument is one of ON, OFF, or DEFAULT. Other #pragmas
starting with "STDC" may appear in future standards; #pragmas not
starting with "STDC" are implementation-defined.
C99 also adds an operator, _Pragma ( string-literal ), which is more
flexible in some cases (it can result from macro expansion, for
example).
--
Keith Thompson (The_Other_Keit h)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.