Skip to content

Commit

Permalink
Static cast for callables
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan63 committed Jun 1, 2023
1 parent eff2bf6 commit 750d4cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/generators/gencpp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1945,6 +1945,7 @@ let rec cpp_type_of stack ctx haxe_type =
| TCppDynamicArray
| TCppObjectArray _
| TCppScalarArray _
| TCppCallable _
-> TCppObjectArray(arrayOf)
| _ ->
TCppScalarArray(arrayOf)
Expand Down Expand Up @@ -4033,7 +4034,9 @@ let gen_cpp_ast_expression_tree ctx class_name func_name function_args function_
| TCppDynamicArray
| TCppClass
| TCppEnum _
| TCppInst _ -> out (".StaticCast< " ^ (tcpp_to_string valueType ) ^ " >()")
| TCppInst _
| TCppCallable _
-> out (".StaticCast< " ^ (tcpp_to_string valueType ) ^ " >()")
| _ ->()
)

Expand Down

0 comments on commit 750d4cd

Please sign in to comment.