pip_cmg fix macros name

This commit is contained in:
Andrey
2021-10-08 15:16:08 +03:00
parent ca20785b53
commit 01b39dc75f

View File

@@ -351,17 +351,7 @@ void makeGetterValue(PIFile & f, const PICodeParser::Entity * e) {
void writeModel(PICodeParser & parser, PICLI & cli, const PIString out, bool meta, bool enums, bool streams, bool texts, bool getters) {
PIVector<const PICodeParser::Entity * > ventities;
PIString defname = out
.replacedAll('.', '_')
.replaceAll('/', '_')
.replaceAll(':', '_')
.replaceAll('-', '_')
.replaceAll('@', '_')
.replaceAll('\\', '_')
.removeAll(' ')
.toUpperCase()
+ "_H";
PIString defname = "CCM_" + PIString::fromNumber(out.hash()) + "_H";
PISet<PIString> inc_files;
piForeachC (PICodeParser::Entity * e, parser.entities)
if (e->name.find("::") < 0 && !e->name.startsWith("_PI"))