mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-22 06:05:44 +01:00
Assert operand's id is not zero
This commit is contained in:
parent
f819ade0ef
commit
200310e8fa
@ -7,6 +7,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <bit>
|
#include <bit>
|
||||||
|
#include <cassert>
|
||||||
#include <concepts>
|
#include <concepts>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
@ -136,6 +137,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Stream& operator<<(Id value) {
|
Stream& operator<<(Id value) {
|
||||||
|
assert(value.value != 0);
|
||||||
return *this << value.value;
|
return *this << value.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user