adding a define for fallthrough abstraction

This commit is contained in:
Clément Le Bihan
2021-05-21 00:41:11 +02:00
parent 3a06afa507
commit 11d0f35e07
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ namespace ComSquare::PPU
secondLowByte = this->_vram->read((tileAddress + 17) % VRAMSIZE);
result = ((secondHighByte & (1U << shift)) | ((secondLowByte & (1U << shift)) << 1U));
result = (shift - 2 >= 0) ? result >> (shift - 2) : result << ((shift - 2) * -1);
__attribute__((fallthrough));
FALLTHROUGH
case 2:
result += ((highByte & (1U << shift)) | ((lowByte & (1U << shift)) << 1U)) >> shift;
default: