flat assembler
Message board for the users of flat assembler.

Index > Main > declaring many EXTRN

Author
Thread Post new topic Reply to topic
alorent



Joined: 05 Dec 2005
Posts: 221
alorent 05 Jan 2006, 15:25
Hello,

I have been searching aroung but didnt find a solution for this.

I have my application with many .asm modules, hence I produce several OBJs and linked all together in the end.

Some variables are referenced by other modules, so I have to declare them with "extrn".

In MASM I can do something like:

extrn MyVar:DWORD, MyVar2:DWORD.....MyVarN:DWORD

but in FASM I have to put each variable with an own "extrn" directive, like:

extrn MyVat:DWORD
extrn MyVar2:DWORD
...
extrn MyVarN:DWORD


Is there any way in FASM to make it behave like in MASM? So, we can define several extrn in a single line.

Thanks.
Post 05 Jan 2006, 15:25
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 05 Jan 2006, 15:30
Code:
macro extrn [def] {extrn def}
extrn MyVar:DWORD, MyVar2:DWORD    
Post 05 Jan 2006, 15:30
View user's profile Send private message Visit poster's website Reply with quote
alorent



Joined: 05 Dec 2005
Posts: 221
alorent 05 Jan 2006, 15:54
Amazing!!! Very Happy

Thanks Tomasz!
Post 05 Jan 2006, 15:54
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.