flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Match and include file

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 815
Roman
if chName = NULL(or number 0) then not do include 'Procs\'# `chName #'.asm'
How do this ?

My macro not work

match d>NULL ,chName \{
include 'Procs\'# `chName #'.asm'
\}
Post 02 Feb 2014, 19:45
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17662
Location: In your JS exploiting you and your system
revolution
The new irpv can do this for you:
Code:
chName equ 'test'
irpv x,chName { include 'Procs\' # x # '.asm' }    
Note that fasm does not have a concept of NULL; chName is either defined as something or not defined but never returning NULL.
Post 03 Feb 2014, 02:56
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 815
Roman
Might be a situation when the user name indicated as zero !
And macro must ignore file names whit zero name
Post 03 Feb 2014, 08:02
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 GitHub, YouTube, Twitter.

Website powered by rwasa.