mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Merge remote-tracking branch 'origin/v0.6.0' into v0.7.0
# Conflicts: # .github/workflows/ci.yml # src/ifcparse/IfcParse.cpp
This commit is contained in:
@@ -334,13 +334,17 @@ class Implementation(codegen.Base):
|
||||
)
|
||||
simple_type_impl.append("")
|
||||
|
||||
external_definitions = [
|
||||
("extern entity* %s_%%s_type;" % schema_name_upper) % n for n in mapping.schema.entities.keys()
|
||||
] + [
|
||||
("extern type_declaration* %s_%%s_type;" % schema_name_upper) % n for n in mapping.schema.simpletypes.keys()
|
||||
] + [
|
||||
("extern enumeration_type* %s_%%s_type;" % schema_name_upper) % n for n in mapping.schema.enumerations.keys()
|
||||
]
|
||||
external_definitions = (
|
||||
[("extern entity* %s_%%s_type;" % schema_name_upper) % n for n in mapping.schema.entities.keys()]
|
||||
+ [
|
||||
("extern type_declaration* %s_%%s_type;" % schema_name_upper) % n
|
||||
for n in mapping.schema.simpletypes.keys()
|
||||
]
|
||||
+ [
|
||||
("extern enumeration_type* %s_%%s_type;" % schema_name_upper) % n
|
||||
for n in mapping.schema.enumerations.keys()
|
||||
]
|
||||
)
|
||||
|
||||
self.str = templates.implementation % {
|
||||
"schema_name_upper": schema_name_upper,
|
||||
|
||||
Reference in New Issue
Block a user