SaturnRingLibrary 0.9.2
SGL wrapper
Loading...
Searching...
No Matches

◆ operator|() [1/2]

Interrupt::Mask SRL::operator| ( Interrupt::Mask a,
Interrupt::Mask b )
constexpr

Bitwise OR operator for Interrupt::Mask.

Parameters
aFirst mask value
bSecond mask value
Returns
New mask with bits set from either operand

Example:

auto combined = Interrupt::Mask::VBlank | Interrupt::Mask::HBlankIn;
@ HBlankIn
Enable H-Blank In interrupt (0x0004).
Definition srl_interrupt.hpp:94