Please sign in to comment.
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.
- Loading branch information...