Skip to content

Commit ea17776

Browse files
authored
Fix async for testwinrt (#515)
1 parent 78da673 commit ea17776

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cppwinrt/code_writers.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,8 @@ namespace cppwinrt
938938
method_name,
939939
bind<write_consume_params>(signature));
940940
}
941+
942+
w.async_types = false;
941943
}
942944

943945
static void write_fast_consume_declarations(writer& w, TypeDef const& default_interface)
@@ -1106,6 +1108,8 @@ namespace cppwinrt
11061108
method_name,
11071109
bind<write_consume_args>(signature));
11081110
}
1111+
1112+
w.async_types = false;
11091113
}
11101114

11111115
static void write_consume_fast_base_definition(writer& w, MethodDef const& method, TypeDef const& class_type, TypeDef const& base_type)
@@ -1156,6 +1160,8 @@ namespace cppwinrt
11561160
method_name,
11571161
bind<write_consume_args>(signature));
11581162
}
1163+
1164+
w.async_types = false;
11591165
}
11601166

11611167
static void write_consume_definitions(writer& w, TypeDef const& type)
@@ -1739,6 +1745,8 @@ namespace cppwinrt
17391745
bind<write_produce_params>(signature),
17401746
bind<write_produce_cleanup>(signature),
17411747
bind<write_produce_upcall>(upcall, signature));
1748+
1749+
w.async_types = false;
17421750
}
17431751

17441752
static void write_fast_produce_methods(writer& w, TypeDef const& default_interface)
@@ -2905,6 +2913,8 @@ struct __declspec(empty_bases) produce_dispatch_to_overridable<T, D, %>
29052913
bind<write_consume_params>(signature));
29062914
}
29072915
}
2916+
2917+
w.async_types = false;
29082918
}
29092919

29102920
static void write_static_definitions(writer& w, MethodDef const& method, TypeDef const& type, TypeDef const& factory)
@@ -2949,6 +2959,8 @@ struct __declspec(empty_bases) produce_dispatch_to_overridable<T, D, %>
29492959
method_name,
29502960
bind<write_consume_args>(signature));
29512961
}
2962+
2963+
w.async_types = false;
29522964
}
29532965

29542966
static void write_class_definitions(writer& w, TypeDef const& type)

0 commit comments

Comments
 (0)