summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Android
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-31 08:36:05 -0400
committerLioncash <mathew1800@gmail.com>2019-05-31 08:51:46 -0400
commitbcdc5b5f7e94ebee49ccc8de77cc54cb9d64b372 (patch)
tree9677ce50ab1dbe7aabcd3a52669708dadf13b0e7 /Source/Core/InputCommon/ControllerInterface/Android
parente0552e0642fa8b2efd05de402f65263ff61eba4a (diff)
IOS/USB_KBD: Add static assertion to enforce MessageData as trivially copyable
MessageData must be a trivially copyable type, given it's copied into emulated memory via our memory copy function CopyToEmu. Under the covers, this function utilizes memcpy. One of memcpy's requirements is that pointers to it point to types that are trivially copyable, otherwise the behavior is undefined. Given that, we can enforce this requirement at compile-time.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Android')
0 files changed, 0 insertions, 0 deletions