flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [fasmg] quoted text as macro param -- match |
Author |
|
Tomasz Grysztar 01 Apr 2017, 11:04
There is no such option in fasmg's MATCH, the case modifiers can only apply to name symbols.
|
|||
01 Apr 2017, 11:04 |
|
zhak 01 Apr 2017, 11:47
I came up with this solution:
Code: macro bag_contains item local it len = lengthof `item if `item and 0xff = "'" & `item shr ((len - 1) * 8) = "'" eval 'define it ', item else define it item end if match =pair? =of? =socks?, it display 'socks',13,10 end match end macro bag_contains pair OF socks bag_contains 'pair OF socks' |
|||
01 Apr 2017, 11:47 |
|
Tomasz Grysztar 01 Apr 2017, 12:17
Look OK, if that works for you. EVAL can often help when there is no other option.
|
|||
01 Apr 2017, 12:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.