From 876715b610a52749e5cc7824122f892dd430ffab Mon Sep 17 00:00:00 2001 From: Nickolai Korshunov Date: Wed, 25 Apr 2018 11:39:18 +0300 Subject: [PATCH] disable strict enums --- binding_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding_generator.py b/binding_generator.py index e1334289..93371567 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -131,7 +131,7 @@ def generate_class_header(used_classes, c): source.append("\n\t// enums") for enum in c["enums"]: - source.append("\tenum class " + strip_name(enum["name"]) + " {") + source.append("\tenum " + strip_name(enum["name"]) + " {") for value in enum["values"]: source.append("\t\t" + remove_nested_type_prefix(value) + " = " + str(enum["values"][value]) + ",") enum_values.append(value)