Skip to content

Commit

Permalink
Fix async for testwinrt (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Feb 3, 2020
1 parent 78da673 commit ea17776
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cppwinrt/code_writers.h
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,8 @@ namespace cppwinrt
method_name,
bind<write_consume_params>(signature));
}

w.async_types = false;
}

static void write_fast_consume_declarations(writer& w, TypeDef const& default_interface)
Expand Down Expand Up @@ -1106,6 +1108,8 @@ namespace cppwinrt
method_name,
bind<write_consume_args>(signature));
}

w.async_types = false;
}

static void write_consume_fast_base_definition(writer& w, MethodDef const& method, TypeDef const& class_type, TypeDef const& base_type)
Expand Down Expand Up @@ -1156,6 +1160,8 @@ namespace cppwinrt
method_name,
bind<write_consume_args>(signature));
}

w.async_types = false;
}

static void write_consume_definitions(writer& w, TypeDef const& type)
Expand Down Expand Up @@ -1739,6 +1745,8 @@ namespace cppwinrt
bind<write_produce_params>(signature),
bind<write_produce_cleanup>(signature),
bind<write_produce_upcall>(upcall, signature));

w.async_types = false;
}

static void write_fast_produce_methods(writer& w, TypeDef const& default_interface)
Expand Down Expand Up @@ -2905,6 +2913,8 @@ struct __declspec(empty_bases) produce_dispatch_to_overridable<T, D, %>
bind<write_consume_params>(signature));
}
}

w.async_types = false;
}

static void write_static_definitions(writer& w, MethodDef const& method, TypeDef const& type, TypeDef const& factory)
Expand Down Expand Up @@ -2949,6 +2959,8 @@ struct __declspec(empty_bases) produce_dispatch_to_overridable<T, D, %>
method_name,
bind<write_consume_args>(signature));
}

w.async_types = false;
}

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

0 comments on commit ea17776

Please sign in to comment.