lancaster-university / codal-core

MIT License
11 stars 28 forks source link

Make `AbstractButton::isPressed()` pure virtual. #163

Closed microbit-carlos closed 1 year ago

microbit-carlos commented 1 year ago

This saves about 40 bytes of flash with gcc v10.3.1 & the codal-microbit-v2 build configuration.

And, as it might be removing the entry in the vtable for the derived classes, it could be a bit more efficient too.

Related to: