flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > matching types

Author
Thread Post new topic Reply to topic
daluca



Joined: 05 Nov 2005
Posts: 86
daluca
Hello:

is there a way to conditionaly preprocess based on types like:

Code:

macro foo [param]
{
   match "",param \{ do something\}
}

    


so the 'do something' gets preprocessed only for parameters that are quoted strings?

thanks.
Post 16 Mar 2007, 16:32
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7725
Location: Kraków, Poland
Tomasz Grysztar
Post 16 Mar 2007, 19:42
View user's profile Send private message Visit poster's website Reply with quote
daluca



Joined: 05 Nov 2005
Posts: 86
daluca
thanks Mr. Graysztar:

Code:

macro check symbol 
{ 
 match `symbol,symbol \{ display "It's the quoted string" \} 
}

    


sorry for thank you so late but since I check the link I was trying to get a macro to work with this feature but it didn't work.
then i found the fasmpre utility but I get a error with the code above.
then i found an update at:
http://board.flatassembler.net/topic.php?t=5644

and i was able to detect the problem.
so i'm gonna post a new thread with this macro that I think is useful.

thanks again!
Post 20 Mar 2007, 06:15
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.