Refactor ResourceHandleInternal to ease porting Currently it is necessary to #ifdef ResourceHandleInternal when implementing a port of ResourceHandle. It'd be a lot simpler if ResourceHandlerInternal were a base class that only defined the shared member variables. Then each port could subclass that to define their port specific member variables, and each port could be responsible for allocating ResourceHandle's d-pointer. If such a change is acceptable, I'll gladly cut a patch.
I'd like to reframe this bug in terms of creating ResourceHandleBase, which would allow us to eliminate ResourceHandleInternal and avoid a bunch of platform #ifdefs.
Created attachment 18687 [details] prototype patch for PLATFORM(MAC) only Here's the initial changes for PLATFORM(MAC). I'd like feedback on this approach before I make corresponding changes for the other platforms :-)
Comment on attachment 18687 [details] prototype patch for PLATFORM(MAC) only actually, this isn't ready for review yet.