flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > numbers and strings

Author
Thread Post new topic Reply to topic
gandalf



Joined: 27 Feb 2009
Posts: 31
gandalf 09 Mar 2009, 19:12
Is it possible to tell names, numbers and strings apart during macro processing?
I think it isn't, but I'd like a confirmation.
Post 09 Mar 2009, 19:12
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8354
Location: Kraków, Poland
Tomasz Grysztar 09 Mar 2009, 19:22
Numbers and names are really the same kind of being for preprocessor - however you can tell the quoted strings from them by using the "match" directive. You do it like this:
Code:
macro tellquoted param
{
  match `param,param \{ display "Yes, it's quoted string." \}
}    


Hmm, perhaps it's high time to update the "Understanding fasm" with the "match"-related section.
Post 09 Mar 2009, 19:22
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.