Explorar o código

[cpp] Correctly map native void type

Hugh %!s(int64=9) %!d(string=hai) anos
pai
achega
cc7c3912b4
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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")