From f8f25980e11bc2c5a6ec04c1989f95e46b075ff6 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 18 Sep 2022 20:58:44 +0100 Subject: [PATCH] Class constants should be static --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index 97f1cefc..9b54fe66 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -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: