disable strict enums

pull/127/head
Nickolai Korshunov 2018-04-25 11:39:18 +03:00
parent a049a34f28
commit 876715b610
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ def generate_class_header(used_classes, c):
source.append("\n\t// enums") source.append("\n\t// enums")
for enum in c["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"]: for value in enum["values"]:
source.append("\t\t" + remove_nested_type_prefix(value) + " = " + str(enum["values"][value]) + ",") source.append("\t\t" + remove_nested_type_prefix(value) + " = " + str(enum["values"][value]) + ",")
enum_values.append(value) enum_values.append(value)