Browse Source

Updated introjucer header guard for new files.

tags/2021-05-28
jules 11 years ago
parent
commit
b0144dd449
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      extras/Introjucer/Source/Utility/jucer_CodeHelpers.cpp

+ 4
- 4
extras/Introjucer/Source/Utility/jucer_CodeHelpers.cpp View File

@@ -198,10 +198,10 @@ namespace CodeHelpers
String makeHeaderGuardName (const File& file)
{
return "__" + file.getFileName().toUpperCase()
.replaceCharacters (" .", "__")
.retainCharacters ("_ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
+ "_" + String::toHexString (file.hashCode()).toUpperCase() + "__";
return file.getFileName().toUpperCase()
.replaceCharacters (" .", "__")
.retainCharacters ("_ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
+ "_INCLUDED";
}
String makeBinaryDataIdentifierName (const File& file)


Loading…
Cancel
Save