Parcourir la source

[cpp] Make sure there is a space after '<' when casting cpp.Functions

Hugh il y a 10 ans
Parent
commit
f5b43f52a9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      gencpp.ml

+ 1 - 1
gencpp.ml

@@ -2003,7 +2003,7 @@ and gen_expression ctx retval expression =
             let signature = cpp_function_signature field.cf_type "" in
             let name = keyword_remap field.cf_name in
             let void_cast = has_meta_key field.cf_meta Meta.Void in
-            output ("::cpp::Function<" ^ signature ^">(");
+            output ("::cpp::Function< " ^ signature ^">(");
             if (void_cast) then output "hx::AnyCast(";
             output ("&::" ^(join_class_path klass.cl_path "::")^ "_obj::" ^ name );
             if (void_cast) then output ")";