Sets the module at the given coordinates, doing nothing if out of bounds.
| 680 | |
| 681 | // Sets the module at the given coordinates, doing nothing if out of bounds. |
| 682 | testable void setModuleBounded(uint8_t qrcode[], int x, int y, bool isBlack) { |
| 683 | int qrsize = qrcode[0]; |
| 684 | if (0 <= x && x < qrsize && 0 <= y && y < qrsize) |
| 685 | setModule(qrcode, x, y, isBlack); |
| 686 | } |
| 687 | |
| 688 | |
| 689 |
no test coverage detected