Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

#pragma once in main file what is it for

/*
The use of #pragma once can reduce build times, as the compiler
won't open and read the file again after the first #include of
the file in the translation unit. It's called the multiple-include 
optimization.
*/

#pragma once
 
PREVIOUS NEXT
Tagged: #main #file
ADD COMMENT
Topic
Name
3+9 =