2
0
Эх сурвалжийг харах

Add a few extra reserved keywords to gencpp (#11268)

Closes https://github.com/HaxeFoundation/hxcpp/issues/1050
Zeta 2 жил өмнө
parent
commit
b5048e7d9d

+ 6 - 1
src/generators/gencpp.ml

@@ -393,7 +393,12 @@ let keyword_remap name =
    | "HX_" | "HXLINE" | "HXDLIN"
    | "NO" | "YES"
    | "abstract" | "decltype" | "finally" | "nullptr" | "static_assert"
-   | "struct" -> "_hx_" ^ name
+   | "struct" | "_Atomic"
+   | "constexpr" | "consteval" | "constinit"
+   | "co_await" | "co_return" | "co_yield"
+   | "alignas" | "alignof"
+   | "_Alignas" | "_Alignof"
+   | "requires" -> "_hx_" ^ name
    | x -> x
 ;;