summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/templates/template-cpp.cpp3
-rw-r--r--scripts/templates/template-h.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/templates/template-cpp.cpp b/scripts/templates/template-cpp.cpp
index 7a8797698a..35d8441c87 100644
--- a/scripts/templates/template-cpp.cpp
+++ b/scripts/templates/template-cpp.cpp
@@ -26,4 +26,5 @@
*/
-#'%c'%35#include "#filename#.h"
+#'' if ( skip_h ) else '%cinclude "%s.h"' % (35,filename)#
+
diff --git a/scripts/templates/template-h.h b/scripts/templates/template-h.h
index de40a8e071..ce7b4ddc87 100644
--- a/scripts/templates/template-h.h
+++ b/scripts/templates/template-h.h
@@ -28,4 +28,4 @@
#'%c'%35#define LL_#filename.upper().replace('-','_')#_H
-#'%c'%35#endif LL_#filename.upper().replace('-','_')#_H
+#'%c'%35#endif // LL_#filename.upper().replace('-','_')#_H