#pragma XOD dirtieness disable
node {
void evaluate(Context ctx) {
uint32_t year = getValue<input_YEAR>(ctx);
emitValue<output_LEAP>(ctx, ((year % 400 == 0) || (year % 100 != 0) && (year % 4 == 0)));
}
}
YEAR | LEAP |
---|---|
2023 | false |
2024 | true |