From 821115caaddd513152d277a5e5e4426bad8f9b58 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Mon, 19 Feb 2024 20:02:01 +0000 Subject: [PATCH] Make ASSERT macro match 5.2.35 --- EXRAILMacros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXRAILMacros.h b/EXRAILMacros.h index 698451e..f0cb150 100644 --- a/EXRAILMacros.h +++ b/EXRAILMacros.h @@ -118,8 +118,8 @@ static_assert(!hasdup(compileTimeSequenceList[0],1),"Duplicate SEQUENCE/ROUTE/AU // This pass generates no runtime data or code #include "EXRAIL2MacroReset.h" #undef ASPECT -#define ASPECT(address,value) static_assert((address & 0x7ff)== address, "invalid Address"); \ - static_assert((value & 0x1F)== value, "Invalid value"); +#define ASPECT(address,value) static_assert(address <=2044, "invalid Address"); \ + static_assert(address>=-3, "Invalid value"); #undef CALL #define CALL(id) static_assert(hasseq(id),"Sequence not found"); #undef FOLLOW