Browse Source

[cpp] Remap YES and NO keywords

hughsando 9 years ago
parent
commit
2e970f14a1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/generators/gencpp.ml

+ 1 - 0
src/generators/gencpp.ml

@@ -355,6 +355,7 @@ let keyword_remap name =
    | "INT16_MAX" | "UINT16_MAX" | "INT32_MIN" | "INT32_MAX" | "UINT32_MAX"
    | "asm" | "near" | "far"
    | "HX_" | "HXLINE" | "HXDLIN"
+   | "NO" | "YES"
    | "abstract" | "decltype" | "finally" | "nullptr" | "static_assert"
    | "struct" -> "_hx_" ^ name
    | x -> x