mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-13 19:32:47 +00:00
0a0b3c4b9f
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. |
||
---|---|---|
.. | ||
arm | ||
file_sys | ||
frontend | ||
gdbstub | ||
hle | ||
hw | ||
loader | ||
tracer | ||
CMakeLists.txt | ||
core.cpp | ||
core.h | ||
core_cpu.cpp | ||
core_cpu.h | ||
core_timing.cpp | ||
core_timing.h | ||
memory.cpp | ||
memory.h | ||
memory_hook.cpp | ||
memory_hook.h | ||
memory_setup.h | ||
perf_stats.cpp | ||
perf_stats.h | ||
settings.cpp | ||
settings.h | ||
telemetry_session.cpp | ||
telemetry_session.h |