In existing code, I saw that #pragma will be used after #include
#include "header1.h"
#include "header2.h"
#pragma once
Instead
#pragma once
#include "header1.h"
#include "header2.h"
I thought that you always need to be like the second example, does it matter when a single #pragma parameter is defined, or does the preprocessor select it anywhere in your file?
Edit
I know that #pragma once is not part of the standard and includes guards, but this is not my question.
source
share