Browse Source

escape 'typename' keyword, which is causing errors when generating bindings

David Castro 6 năm trước cách đây
mục cha
commit
30500632b1
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      binding_generator.py

+ 2 - 1
binding_generator.py

@@ -824,7 +824,8 @@ def escape_cpp(name):
         "export":   "_export",
         "template": "_template",
         "new":      "new_",
-        "operator": "_operator"
+        "operator": "_operator",
+        "typename": "_typename"
     }
     if name in escapes:
         return escapes[name]