yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0
This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
yuzu-android/src
Lioncash 0a0b3c4b9f ipc_helpers: Add PushEnum() member function to ResponseBuilder
Allows pushing strongly-typed enum members without the need to always
cast them at the call sites.

Note that we *only* allow strongly-typed enums in this case. The reason
for this is that strongly typed enums have a guaranteed defined size, so
the size of the data being pushed is always deterministic. With regular
enums this can be a little more error-prone, so we disallow them.

This function simply uses the underlying type of the enum to determine
the size of the data. For example, if an enum is defined as:

enum class SomeEnum : u16 {
  SomeEntry
};

if PushEnum(SomeEnum::SomeEntry); is called, then it will push a
u16-size amount of data.
2018-07-20 15:00:58 -04:00
..
common Merge pull request #711 from lioncash/swap 2018-07-19 11:48:16 -07:00
core ipc_helpers: Add PushEnum() member function to ResponseBuilder 2018-07-20 15:00:58 -04:00
input_common Rename logging macro back to LOG_* 2018-07-02 21:45:47 -04:00
tests Virtual Filesystem 2: Electric Boogaloo (#676) 2018-07-18 18:07:11 -07:00
video_core Merge pull request #738 from lioncash/sign 2018-07-20 09:21:57 -07:00
yuzu thread: Convert ThreadStatus into an enum class 2018-07-19 22:08:56 -04:00
yuzu_cmd settings: Turn docked mode off by default. 2018-07-17 22:52:25 -04:00
.clang-format Remove special rules for Windows.h and library includes 2016-09-21 00:16:33 -07:00
CMakeLists.txt Massive removal of unused modules 2018-01-12 19:11:03 -07:00