diff options
| author | bunnei <bunneidev@gmail.com> | 2022-09-10 11:01:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-10 11:01:11 -0700 |
| commit | cd4b9bffb2d42b1f8d4386b251a35344891df55a (patch) | |
| tree | 53454fa29c30e9fa7f1f2c31f9586839d799f277 /src/core/hle/result.h | |
| parent | 16080b6e4e28b49e0e320879ebbab34199fb81c2 (diff) | |
| parent | 2129d040a509754839b82b1ff6d387cb4f84f168 (diff) | |
Merge pull request #8842 from Kelebek1/AudOut
[audio_core] Rework audio output
Diffstat (limited to 'src/core/hle/result.h')
| -rw-r--r-- | src/core/hle/result.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h index 4de44cd06..47a1b829b 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -117,6 +117,7 @@ union Result { BitField<0, 9, ErrorModule> module; BitField<9, 13, u32> description; + Result() = default; constexpr explicit Result(u32 raw_) : raw(raw_) {} constexpr Result(ErrorModule module_, u32 description_) @@ -130,6 +131,7 @@ union Result { return !IsSuccess(); } }; +static_assert(std::is_trivial_v<Result>); [[nodiscard]] constexpr bool operator==(const Result& a, const Result& b) { return a.raw == b.raw; |
