mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-12-27 10:52:37 +00:00
VirtualBuffer makes use of VirtualAlloc (on Windows) and mmap() (on other platforms). Neither of these ensure that non-trivial objects are properly constructed in the allocated memory. To prevent potential undefined behavior occurring due to that, we can add a static assert to loudly complain about cases where that is done.