ams-libs: AMS_ASSERT no longer invokes expression
This commit is contained in:
1 parent
5dc64bc1f7
commit
9b04ff0f54
38 files changed
+82
-23
No files matched your search
@@ -38,8 +38,9 @@ namespace ams::os::impl {
|
||||
const s64 frac = tick_val % tick_freq;
|
||||
const TimeSpan ts = TimeSpan::FromSeconds(seconds) + TimeSpan::FromNanoSeconds(frac * NanoSecondsPerSecond / tick_freq);
|
||||
|
||||
constexpr TimeSpan ZeroTS = TimeSpan::FromNanoSeconds(0);
|
||||
constexpr TimeSpan ZeroTS = TimeSpan::FromNanoSeconds(0);
|
||||
AMS_ASSERT(!((tick_val > 0 && ts < ZeroTS) || (tick_val < 0 && ts > ZeroTS)));
|
||||
AMS_UNUSED(ZeroTS);
|
||||
|
||||
return ts;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user