pokeemerald/asm/macros/asm.inc

13 lines
168 B
PHP

.macro inc x:req
.set \x, \x + 1
.endm
.macro enum_start x=0
.set __enum__, \x
.endm
.macro enum constant:req
.equiv \constant, __enum__
inc __enum__
.endm