diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-28 09:42:06 -0400 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 11:35:21 -0400 |
commit | 2a8837ff51a9cf5a0123489dba5f7ab48373c2d3 (patch) | |
tree | 119ae561120f78d70efd6e12297248a48ea28901 /src/core/hardware_properties.h | |
parent | 04e0f8776c26930d7dc8015e53914b11bf1929c1 (diff) |
General: Add Asserts
Diffstat (limited to 'src/core/hardware_properties.h')
-rw-r--r-- | src/core/hardware_properties.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hardware_properties.h b/src/core/hardware_properties.h index b04e046ed..456b41e1b 100644 --- a/src/core/hardware_properties.h +++ b/src/core/hardware_properties.h @@ -42,6 +42,10 @@ struct EmuThreadHandle { constexpr u32 invalid_handle = 0xFFFFFFFF; return {invalid_handle, invalid_handle}; } + + bool IsInvalid() const { + return (*this) == InvalidHandle(); + } }; } // namespace Core |