flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > [solved]__file__ to include

Author
Thread Post new topic Reply to topic
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 04 Aug 2022, 09:34
Hi
How can I include __file__ ?
"file not found"


Last edited by Overclick on 04 Aug 2022, 10:47; edited 1 time in total
Post 04 Aug 2022, 09:34
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 04 Aug 2022, 10:39
This is a built-in symbolic variable similar to variables defined with EQU, therefore you can use MATCH to extract the value (see the feature announcement for more info):
Code:
match f, __file__ { include f }    
Post 04 Aug 2022, 10:39
View user's profile Send private message Visit poster's website Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 04 Aug 2022, 10:46
But I did like that !@#...
Thanks, it works
Post 04 Aug 2022, 10:46
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.