Browse Source

[cpp] Correctly map native void type

Hugh 9 years ago
parent
commit
cc7c3912b4
1 changed files with 1 additions and 0 deletions
  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")