i done the folloing macro to emulate a enum datatype.
But, if there are several more symbol names passed in the arglist i get the error: Literal too long..
Therefore the LEnum symbol holds the last count.
Its a cheap solution, are there any other ??? :)
enum MACRO iv:REQ, arglist:VARARG
LOCAL count
count = iv
FOR arg, <arglist>
arg equ count
count = count + 1
LEnum = count
ENDM
ENDM
But, if there are several more symbol names passed in the arglist i get the error: Literal too long..
Therefore the LEnum symbol holds the last count.
Its a cheap solution, are there any other ??? :)