- fix: Name of the macro for project private resource header is not correct.
This commit is contained in:
parent
aca3ce8b24
commit
d6e0e07943
1
NEWS.md
1
NEWS.md
|
@ -145,6 +145,7 @@ Red Panda C++ Version 2.27
|
|||
- enhancement: sdcc project compiler: compile source file in subfolders.
|
||||
- fix: project options -> compiler set -> static link & auto convert charset options not correctly loaded.
|
||||
- change: Don't generate project resource files for sdcc project.
|
||||
- fix: Name of the macro for project private resource header is not correct.
|
||||
|
||||
Red Panda C++ Version 2.26
|
||||
- enhancement: Code suggestion for embedded std::vectors.
|
||||
|
|
|
@ -1581,8 +1581,11 @@ void Project::buildPrivateResource()
|
|||
// create private header file
|
||||
QString hFile = changeFileExt(rcFile, H_EXT);
|
||||
contents.clear();
|
||||
QString def = extractFileName(rcFile);
|
||||
QString def = extractFileName(hFile);
|
||||
def.replace(".","_");
|
||||
def = def.toUpper();
|
||||
if (def.front().isDigit())
|
||||
def = "PROJECT_"+def;
|
||||
contents.append("/* THIS FILE WILL BE OVERWRITTEN BY Red Panda C++ */");
|
||||
contents.append("/* DO NOT EDIT ! */");
|
||||
contents.append("");
|
||||
|
|
Loading…
Reference in New Issue