Skip to content

Include handling of HNDTYPE_REFCOUNTED when FEATURE_OBJCWRAPPERS is defined#47534

Merged
elinor-fung merged 2 commits intodotnet:feature/objc-interopfrom
elinor-fung:refCountedHandle
Jan 27, 2021
Merged

Include handling of HNDTYPE_REFCOUNTED when FEATURE_OBJCWRAPPERS is defined#47534
elinor-fung merged 2 commits intodotnet:feature/objc-interopfrom
elinor-fung:refCountedHandle

Conversation

@elinor-fung
Copy link
Member

  • Include handling of ref-counted handles when FEATURE_OBJCWRAPPERS (or FEATURE_COMWRAPPERS) is defined
    • Doesn't do anything right now, just builds
  • Some scoping/separation of FEATURE_COMWRAPPERS vs FEATURE_COMINTEROP ifdefs

cc @AaronRobinsonMSFT @jkoritzinsky

@AaronRobinsonMSFT
Copy link
Member

I think this is fine. What are the throughs on creating a new FEATURE_REFCOUNTEDHANDLE?

@elinor-fung
Copy link
Member Author

I had considered a new define (as some of them were getting up to four different defines...) - not opposed.

I didn't try add a new define because I had been thinking of feature defines as basically that concept/feature not existing if it is not defined? Right now, it seems like the ref-counted handle concept always exists, and it is just the handling/interpretation of HNDTYPE_REFCOUNTED that is ifdef-ed all over the place.

@AaronRobinsonMSFT
Copy link
Member

@elinor-fung Fair point. LGTM. @jkoritzinsky ?

@elinor-fung elinor-fung merged commit 288212a into dotnet:feature/objc-interop Jan 27, 2021
@elinor-fung elinor-fung deleted the refCountedHandle branch January 27, 2021 21:13
@ghost ghost locked as resolved and limited conversation to collaborators Feb 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants