aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-11-17 20:09:55 -0500
committerLioncash <mathew1800@gmail.com>2020-11-17 20:09:58 -0500
commit0ca91ced2dab3654e78e4c465506d7baad3cbeeb (patch)
tree4165380bb5e6bc44d901e9c93651bc2bb620ef0f /src/input_common/sdl/sdl_impl.cpp
parentb3c8997829ed986c948d195bc1e7c8f66c42755e (diff)
virtual_buffer: Add compile-time type-safety guarantees with VirtualBuffer
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.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions