pragma once
-
Hi !! What is the meaning of following statements:
#if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000
generated by visual studio in header files. -
Hi !! What is the meaning of following statements:
#if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000
generated by visual studio in header files.It tells the compiler to only process the header file once.
Software is everything. It also sucks. Charles Fishman [^] Awasu 1.0.3 (beta)[^]: A free RSS reader with support for Code Project.
-
Hi !! What is the meaning of following statements:
#if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000
generated by visual studio in header files.As Taka said, it tells the compiler to process the header file only once (unlike the usual #ifndef _HEADERNAME #define _HEADERNAME ..., it doesn't need to open the file again, start parsing etc.) It's implemented only in certain compiler versions, for which is the additional #ifdef _MSC_VER check
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen