1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 08:22:04 +00:00

tipc: hard-enforce boolean constraints in command processing generation

This commit is contained in:
Michael Scire 2021-04-08 16:52:30 -07:00 committed by SciresM
parent 315b7bdf22
commit 20a7fa1588

View file

@ -73,7 +73,7 @@ namespace ams::tipc::impl {
concept Is##CLASSNAME = CMD_MACRO(CLASSNAME, AMS_TIPC_IMPL_CHECK_CONCEPT_HELPER) true;
#define AMS_TIPC_IMPL_PROCESS_METHOD_REQUEST(CLASSNAME, CMD_ID, RETURN, NAME, ARGS, ARGNAMES, VERSION_MIN, VERSION_MAX) \
if (constexpr u16 TipcCommandId = CMD_ID + 0x10; tag == TipcCommandId) { \
else if (constexpr u16 TipcCommandId = CMD_ID + 0x10; tag == TipcCommandId) { \
return this->ProcessMethodById<TipcCommandId, ImplType>(impl, message_buffer, fw_ver); \
}