R
raashid bhatt
What is #pragma once used for
and
what is #WIN#@_LEN_AND_MEAN
and
what is #WIN#@_LEN_AND_MEAN
raashid bhatt said:What is #pragma once used for
and
what is #WIN#@_LEN_AND_MEAN
What is #pragma once used for
and
what is #WIN#@_LEN_AND_MEAN
raashid said:What is #pragma once used for
what is #WIN#@_LEN_AND_MEAN
What is #pragma once used for
and
what is #WIN#@_LEN_AND_MEAN
Locking you 100% into a specific compiler vendor.
I guess other compilers also have compiler specific stuff,
like __attribute() in gcc, which doesn't work in VC++ and
is not a part of C++ standard.
<snip>#pragma once directs the preprocessor of MS Visual C++ to #include the
file only one time per compilation unit, even if more than one
#include for the file is encountered. #pragma is the standard way to
add non-standard behavior to C++; other compilers will just ignore the
line. A better way to achieve the effect would be
xyz.h:
#ifndef _XYZ_H_INCLUDED
#define _XYZ_H_INCLUDED
... /* remainder of file */
#endif
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.