1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-26 22:16:28 -05:00

General: Add Asserts

This commit is contained in:
Fernando Sahmkow
2020-02-28 09:42:06 -04:00
parent 04e0f8776c
commit 2a8837ff51
4 changed files with 24 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ struct EmuThreadHandle {
constexpr u32 invalid_handle = 0xFFFFFFFF;
return {invalid_handle, invalid_handle};
}
bool IsInvalid() const {
return (*this) == InvalidHandle();
}
};
} // namespace Core