flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > proc inside macro

Author
Thread Post new topic Reply to topic
luckysundog



Joined: 11 Mar 2009
Posts: 2
luckysundog 11 Mar 2009, 01:15
i tried to use proc macro inside another macro. something like this:
Code:
 macro def_m_something nameprefix
 {
   proc nameprefix#_m_something arg1,arg2
        local   var1:DWORD
        ret
   endp
 }
    

and here i get an error...
can anybody advice how to make it work? Smile (excepting redefining 'local' macro with the other name?)
Post 11 Mar 2009, 01:15
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 11 Mar 2009, 01:21
Change "local" to "\local".
Post 11 Mar 2009, 01:21
View user's profile Send private message Reply with quote
luckysundog



Joined: 11 Mar 2009
Posts: 2
luckysundog 11 Mar 2009, 01:42
thanks!
Post 11 Mar 2009, 01:42
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.