LibJS: Make Register comparable

This commit is contained in:
Hendiadyoin1 2022-10-22 20:20:35 +02:00 committed by Linus Groh
parent 9a5ae8a92a
commit f5e7fa4d0e
Notes: sideshowbarker 2024-07-17 21:26:19 +09:00

View file

@ -25,6 +25,8 @@ public:
{ {
} }
bool operator==(Register reg) const { return m_index == reg.index(); }
u32 index() const { return m_index; } u32 index() const { return m_index; }
private: private: