mirror of https://github.com/KLayout/klayout.git
Fixing a static initialization problem on Windows
This commit is contained in:
parent
4a152583e8
commit
fcfc69529c
|
|
@ -94,7 +94,9 @@ Class<db::LogEntryData> decl_dbNetlistDeviceExtractorError ("db", "LogEntryData"
|
||||||
"It was generalized and renamed in version 0.28.13 as it was basically not useful as a separate class."
|
"It was generalized and renamed in version 0.28.13 as it was basically not useful as a separate class."
|
||||||
);
|
);
|
||||||
|
|
||||||
gsi::Enum<db::Severity> decl_Severity ("db", "Severity",
|
const gsi::Enum<db::Severity> &get_decl_Severity ()
|
||||||
|
{
|
||||||
|
static gsi::Enum<db::Severity> decl_Severity ("db", "Severity",
|
||||||
gsi::enum_const ("NoSeverity", db::NoSeverity,
|
gsi::enum_const ("NoSeverity", db::NoSeverity,
|
||||||
"@brief Specifies no particular severity (default)\n"
|
"@brief Specifies no particular severity (default)\n"
|
||||||
) +
|
) +
|
||||||
|
|
@ -110,13 +112,11 @@ gsi::Enum<db::Severity> decl_Severity ("db", "Severity",
|
||||||
"@brief This enum specifies the severity level for log entries.\n"
|
"@brief This enum specifies the severity level for log entries.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"This enum was introduced in version 0.28.13.\n"
|
"This enum was introduced in version 0.28.13.\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
const gsi::Enum<db::Severity> &get_decl_Severity ()
|
|
||||||
{
|
|
||||||
return decl_Severity;
|
return decl_Severity;
|
||||||
}
|
}
|
||||||
|
|
||||||
gsi::ClassExt<db::LogEntryData> inject_SeverityEnum_into_LogEntryData (decl_Severity.defs ());
|
gsi::ClassExt<db::LogEntryData> inject_SeverityEnum_into_LogEntryData (get_decl_Severity ().defs ());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue