pokeemerald/asm/macros/asm.inc
2016-11-01 08:29:13 -07:00

13 lines
160 B
PHP

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