From 54c2d2357213a6045b65120ccadc42b6204d8652 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Wed, 22 Sep 2021 16:07:23 +0200 Subject: [PATCH] Escape parameters named `enum`. Prefix parameters named `enum` with an underscore like all the other reserved keywords. --- binding_generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/binding_generator.py b/binding_generator.py index 1b612c2a..491ae9b1 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -881,6 +881,7 @@ def is_primitive(name): def escape_cpp(name): escapes = { "class": "_class", + "enum": "_enum", "char": "_char", "short": "_short", "bool": "_bool",