Pārlūkot izejas kodu

[cpp] Correctly map native void type

Hugh 9 gadi atpakaļ
vecāks
revīzija
cc7c3912b4
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/generators/gencpp.ml

+ 1 - 0
src/generators/gencpp.ml

@@ -1948,6 +1948,7 @@ let rec cpp_type_of ctx haxe_type =
    and  cpp_type_from_path ctx path params default =
       match path,params with
       | ([],"Void"),_ -> TCppVoid
+      | ([],"void"),_ -> TCppVoid (* for old code with @:void *)
       | ([],"Bool"),_ -> TCppScalar("Bool")
       | ([],"Float"),_ -> TCppScalar("Float")
       | ([],"Int"),_ -> TCppScalar("Int")