Possible Duplicate:
#pragma - help understanding
I saw the pragma
many times,but always confused, anyone knows what it does?Is it windows only?
In the C and C++ programming languages, #pragma once is a non-standard but widely supported preprocessor directive designed to cause the current source file to be included only once in a single compilation. Thus, #pragma once serves the same purpose as #include guards, but with several advantages, including: less code, avoiding name clashes, and improved compile speed.
See the Wikipedia article for further details.