Skip to content

Commit 2561254

Browse files
committed
Generate functions using new AutoCallable intermediate
1 parent 8164bef commit 2561254

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/generators/cpp/gen/cppGen.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ let gen_cpp_ast_expression_tree ctx class_name func_name function_args
15001500
let argsCount = list_num closure.close_args in
15011501
let signature = cpp_closure_signature closure in
15021502
output_i ("HX_BEGIN_LOCAL_FUNC_S" ^ size ^ "(");
1503-
Printf.sprintf "::hx::Callable_obj<%s>, _hx_Closure_%i" signature closure.close_id |> out;
1503+
Printf.sprintf "::hx::AutoCallable_obj<%s>, _hx_Closure_%i" signature closure.close_id |> out;
15041504
StringMap.iter
15051505
(fun name var ->
15061506
out ("," ^ cpp_macro_var_type_of var ^ "," ^ keyword_remap name))

src/generators/cpp/gen/cppGenClassImplementation.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let write_closure_header callable_name captures func return_type_str prefix outp
2020
die (Printf.sprintf "tcf_callable should be a TCppCalllable but was %s" (tcpp_to_string func.tcf_callable)) __LOC__
2121
in
2222

23-
Printf.sprintf "struct %s final : public ::hx::Callable_obj< %s > {\n" callable_name func_signature |> output;
23+
Printf.sprintf "struct %s final : public ::hx::AutoCallable_obj< %s > {\n" callable_name func_signature |> output;
2424

2525
(match captures with
2626
| Some obj_name ->

0 commit comments

Comments
 (0)