On 27 Mrz., 06:12, raashid bhatt <raashidbh...@gmail.comwrote:
What is #pragma once used for
and
what is #WIN#@_LEN_AND_MEAN
#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
The definition of the WIN_LEAN_AND_MEAN preprocessor symbol in MS
Visual C++ excludes rarely used stuff from the platform specific
#include files (windows.h, ...).
best,
Michael