Class constants should be static

pull/848/head
Marc Gilleron 2022-09-18 20:58:44 +01:00
parent 3276688c82
commit f8f25980e1
1 changed files with 1 additions and 1 deletions

View File

@ -1022,7 +1022,7 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us
for value in class_api["constants"]:
if "type" not in value:
value["type"] = "int"
result.append(f'\tconst {value["type"]} {value["name"]} = {value["value"]};')
result.append(f'\tstatic const {value["type"]} {value["name"]} = {value["value"]};')
result.append("")
if is_singleton: