sys: util: Add COND_CASE_1 macro

Add a switch/case like variant of the COND_CODE_1 macro where the first
flag that equals 1 has its value expanded, with a default fallback.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2 files changed