Skip to content

Commit 6db1046

Browse files
committed
[cpp] Remove 0 arguments to ScriptNamedFunction
They are optional in the api version of hxcpp we require, and have been optional for a very long time.
1 parent 4d86195 commit 6db1046

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/generators/cpp/gen/cppGenClassImplementation.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ let generate_managed_class base_ctx tcpp_class =
10291029
in
10301030

10311031
let sigs =
1032-
[ "\t::hx::ScriptNamedFunction(0,0,0)" ]
1032+
[ "\t::hx::ScriptNamedFunction()" ]
10331033
|> List.fold_right (dump_script false) tcpp_class.tcl_functions
10341034
|> List.fold_right (dump_script true) tcpp_class.tcl_static_functions
10351035
|> String.concat ",\n"

src/generators/cpp/gen/cppGenInterfaceImplementation.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ let generate_managed_interface base_ctx tcpp_interface =
230230
s |> output_cpp;
231231
in
232232
List.iter dump_func sig_and_funcs;
233-
output_cpp "\t::hx::ScriptNamedFunction(0,0,0) };\n");
233+
output_cpp "\t::hx::ScriptNamedFunction() };\n");
234234

235235
let mapper f = Printf.sprintf "\t%s&%s::%s" (cpp_tfun_signature true f.iff_args f.iff_return) script_name f.iff_name in
236236
let strings =

0 commit comments

Comments
 (0)