boeckmann / asm6502

Small but useful 6502 assembler in ~3K lines of ANSI C code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement ?: operator

boeckmann opened this issue · comments

expr ?: default returns expr, if it is defined. It returns default, if expr is not defined Makes the following convinient:

BORDER_COLOR = BORDER_COLOR ?: 6

While this is nice it is nothing that can not be done with an .IFNDEF. Also it is not so common.

Yeah, it has some nice characteristics. Do you think its useful? Would prevent some IF cascades. I am in doubt if it is worth implementing.