Fix #96: Don't include a comment after #endif for the C header.
authorJohn Kessenich <cepheus@frii.com>
Tue, 5 Mar 2019 04:41:55 +0000 (23:41 -0500)
committerJohn Kessenich <cepheus@frii.com>
Tue, 5 Mar 2019 04:41:55 +0000 (23:41 -0500)
include/spirv/unified1/spirv.h
tools/buildHeaders/header.cpp [changed mode: 0644->0755]

index aba5bbc..8da27dd 100644 (file)
@@ -1209,5 +1209,5 @@ typedef enum SpvOp_ {
     SpvOpMax = 0x7fffffff,
 } SpvOp;
 
-#endif  // #ifndef spirv_H
+#endif
 
old mode 100644 (file)
new mode 100755 (executable)
index 7d5cd98..faf0b9d
@@ -478,7 +478,7 @@ namespace {
         }
 
         virtual void printEpilogue(std::ostream& out) const override {
-            out << "#endif  // #ifndef spirv_" << headerGuardSuffix() << std::endl;
+            out << "#endif" << std::endl;
         }
 
         virtual void printTypes(std::ostream& out) const override {
@@ -552,7 +552,7 @@ namespace {
             }
 
             out << "\n}  // end namespace spv\n\n";
-            TPrinterCBase::printEpilogue(out);
+            out << "#endif  // #ifndef spirv_" << headerGuardSuffix() << std::endl;
         }
 
         std::string commentBOL() const override { return "// "; }