Browse Source

[cpp] Fixed @:nativeGen extension generation (#10823)

RoBBoR 2 years ago
parent
commit
3d20070235
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/generators/gencpp.ml

+ 2 - 2
src/generators/gencpp.ml

@@ -1687,8 +1687,8 @@ and cpp_class_path_of klass params =
       let typeParams = match params with
       | [] -> ""
       | _ -> "<" ^ String.concat "," (List.map tcpp_to_string params) ^ ">" in
-      (join_class_path_remap klass.cl_path "::") ^ typeParams
-   | false -> "::" ^ (join_class_path_remap klass.cl_path "::")
+      (" " ^ (join_class_path_remap klass.cl_path "::") ^ typeParams)
+   | false -> " ::" ^ (join_class_path_remap klass.cl_path "::")
 ;;