зеркало из https://github.com/microsoft/com-rs.git
Коммит
87e846ce03
|
@ -5,7 +5,8 @@ use syn::ItemStruct;
|
||||||
// We manually generate a ClassFactory without macros, otherwise
|
// We manually generate a ClassFactory without macros, otherwise
|
||||||
// it leads to an infinite loop.
|
// it leads to an infinite loop.
|
||||||
pub fn generate(struct_item: &ItemStruct) -> HelperTokenStream {
|
pub fn generate(struct_item: &ItemStruct) -> HelperTokenStream {
|
||||||
let base_interface_idents = crate::co_class::class_factory::get_class_factory_base_interface_idents();
|
let base_interface_idents =
|
||||||
|
crate::co_class::class_factory::get_class_factory_base_interface_idents();
|
||||||
let aggr_map = crate::co_class::class_factory::get_class_factory_aggr_map();
|
let aggr_map = crate::co_class::class_factory::get_class_factory_aggr_map();
|
||||||
|
|
||||||
let struct_ident = &struct_item.ident;
|
let struct_ident = &struct_item.ident;
|
||||||
|
|
|
@ -21,8 +21,7 @@ pub fn generate(
|
||||||
let aggregate_fields = co_class::com_struct::gen_aggregate_fields(aggr_map);
|
let aggregate_fields = co_class::com_struct::gen_aggregate_fields(aggr_map);
|
||||||
|
|
||||||
// COM Fields for an aggregable coclass.
|
// COM Fields for an aggregable coclass.
|
||||||
let non_delegating_iunknown_field_ident =
|
let non_delegating_iunknown_field_ident = crate::utils::non_delegating_iunknown_field_ident();
|
||||||
crate::utils::non_delegating_iunknown_field_ident();
|
|
||||||
let iunknown_to_use_field_ident = crate::utils::iunknown_to_use_field_ident();
|
let iunknown_to_use_field_ident = crate::utils::iunknown_to_use_field_ident();
|
||||||
|
|
||||||
quote!(
|
quote!(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче