tumbledemerald-legacy/asm/macros/asm.inc

13 lines
160 B
PHP
Raw Normal View History

2022-05-19 19:14:13 +02:00
.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