2
I am developing a cross-platform project (Windows - Linux - Macos). During its development and while generating documentation (via Doxygen) I realized that there are many files *.h
to be called by several files *.cpp
. My questions are as follows::
- It is possible to limit the amount of times that a header file is called in the project?
- Recommend the use of the directive
#pragma once
? - Taking for example the file
a.h
includesa1.h
anda2.h
and is included byb.h
andb.h
needsa1.h
, I have to call them implicitly intob.h
? It is not enough to be already called ina.h
?