- fix: Name of the macro for project private resource header is not correct.

This commit is contained in:
Roy Qu 2024-04-15 19:10:09 +08:00
parent aca3ce8b24
commit d6e0e07943
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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("");