mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-22 08:16:54 +00:00
Copy constructor and equality operations added.
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
|
||||
DEFINE_PIN_LEVEL_CHANGERS(POWER, Device);
|
||||
|
||||
EightBit::Device::Device(const Device& rhs) {
|
||||
POWER() = rhs.POWER();
|
||||
}
|
||||
|
||||
bool EightBit::Device::operator==(const EightBit::Device& rhs) const {
|
||||
return POWER() == rhs.POWER();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user