mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
Replaced Projucer-generated header guards with #pragma once and updated the examples
This commit is contained in:
parent
31c80db5a2
commit
e33abbc6fe
230 changed files with 322 additions and 1219 deletions
|
|
@ -112,12 +112,9 @@ static String getComment()
|
|||
|
||||
Result ResourceFile::writeHeader (MemoryOutputStream& header)
|
||||
{
|
||||
const String headerGuard ("BINARYDATA_H_" + String (project.getProjectUID().hashCode() & 0x7ffffff) + "_INCLUDED");
|
||||
|
||||
header << "/* ========================================================================================="
|
||||
<< getComment()
|
||||
<< "#ifndef " << headerGuard << newLine
|
||||
<< "#define " << headerGuard << newLine
|
||||
<< "#pragma once" << newLine
|
||||
<< newLine
|
||||
<< "namespace " << className << newLine
|
||||
<< "{" << newLine;
|
||||
|
|
@ -156,9 +153,7 @@ Result ResourceFile::writeHeader (MemoryOutputStream& header)
|
|||
<< " // If you provide the name of one of the binary resource variables above, this function will" << newLine
|
||||
<< " // return the corresponding data and its size (or a null pointer if the name isn't found)." << newLine
|
||||
<< " const char* getNamedResource (const char* resourceNameUTF8, int& dataSizeInBytes) throw();" << newLine
|
||||
<< "}" << newLine
|
||||
<< newLine
|
||||
<< "#endif" << newLine;
|
||||
<< "}" << newLine;
|
||||
|
||||
return Result::ok();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue