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