mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-09-22 23:18:35 +02:00
797a6910fd
Joel Linn TLDR; https://godbolt.org/z/43fd8G Let's deduce this from C++ reference code: https://docs.microsoft.com/en-us/cpp/cppcx/wrl/how-to-activate-and-use-a-windows-runtime-component-using-wrl?view=msvc-160 At the bottom of the page there is this snippet: ``` int wmain() { /* ... more code ... */ // Get the domain part of the URI. HString domainName; hr = uri->get_Domain(domainName.GetAddressOf()); if (FAILED(hr)) { return PrintError(__LINE__, hr); } // Print the domain name and return. wprintf_s(L"Domain name: %s\n", domainName.GetRawBuffer(nullptr)); // All smart pointers and RAII objects go out of scope here. } ``` `HString` is defined in `corewrappers.h` and the call chain for the destructor is: `~HString() -> Release() -> ::WindowsDeleteString()` QED |
||
---|---|---|
.. | ||
android | ||
bsd | ||
darwin | ||
dummy | ||
emscripten | ||
haiku | ||
hidapi | ||
iphoneos | ||
linux | ||
psp | ||
steam | ||
virtual | ||
windows | ||
check_8bitdo.sh | ||
controller_type.h | ||
SDL_gamecontroller.c | ||
SDL_gamecontrollerdb.h | ||
SDL_joystick_c.h | ||
SDL_joystick.c | ||
SDL_sysjoystick.h | ||
sort_controllers.py | ||
usb_ids.h |