Compare commits
2 commits
3ed52f2ae8
...
91a4f55937
Author | SHA1 | Date | |
---|---|---|---|
91a4f55937 | |||
dd01cb0ed0 |
2 changed files with 7 additions and 13 deletions
|
@ -182,7 +182,7 @@ public:
|
|||
} else if constexpr (size == 32) {
|
||||
return ReadW(arg);
|
||||
} else {
|
||||
ASSERT_FALSE("Invalid size to ReadReg {}", size);
|
||||
ASSERT_MSG(false, "Invalid size to ReadReg {}", size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -199,7 +199,7 @@ public:
|
|||
} else if constexpr (size == 8) {
|
||||
return ReadB(arg);
|
||||
} else {
|
||||
ASSERT_FALSE("Invalid size to ReadVec {}", size);
|
||||
ASSERT_MSG(false, "Invalid size to ReadVec {}", size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -221,7 +221,7 @@ public:
|
|||
} else if constexpr (size == 32) {
|
||||
return WriteW(inst);
|
||||
} else {
|
||||
ASSERT_FALSE("Invalid size to WriteReg {}", size);
|
||||
ASSERT_MSG(false, "Invalid size to WriteReg {}", size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -238,7 +238,7 @@ public:
|
|||
} else if constexpr (size == 8) {
|
||||
return WriteB(inst);
|
||||
} else {
|
||||
ASSERT_FALSE("Invalid size to WriteVec {}", size);
|
||||
ASSERT_MSG(false, "Invalid size to WriteVec {}", size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ public:
|
|||
} else if constexpr (size == 32) {
|
||||
return ReadWriteW(arg, inst);
|
||||
} else {
|
||||
ASSERT_FALSE("Invalid size to ReadWriteReg {}", size);
|
||||
ASSERT_MSG(false, "Invalid size to ReadWriteReg {}", size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -275,7 +275,7 @@ public:
|
|||
} else if constexpr (size == 8) {
|
||||
return ReadWriteB(arg, inst);
|
||||
} else {
|
||||
ASSERT_FALSE("Invalid size to ReadWriteVec {}", size);
|
||||
ASSERT_MSG(false, "Invalid size to ReadWriteVec {}", size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -372,7 +372,7 @@ void RAReg<T>::Realize() {
|
|||
reg = T{reg_alloc.RealizeReadWriteImpl<kind>(read_value, write_value)};
|
||||
break;
|
||||
default:
|
||||
ASSERT_FALSE("Invalid RWType");
|
||||
ASSERT_MSG(false, "Invalid RWType");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,12 +23,6 @@ template<typename... Ts>
|
|||
} \
|
||||
}())
|
||||
#endif
|
||||
#ifndef ASSERT_FALSE
|
||||
#define ASSERT_FALSE(...) \
|
||||
([&]() { \
|
||||
assert_terminate("false", __VA_ARGS__); \
|
||||
}())
|
||||
#endif
|
||||
|
||||
#ifndef ASSERT
|
||||
#define ASSERT(_a_) ASSERT_MSG(_a_, "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue