flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > menuseparator ID

Author
Thread Post new topic Reply to topic
Raedwulf



Joined: 13 Jul 2005
Posts: 375
Location: United Kingdom
Raedwulf 16 Mar 2007, 09:30
Code speaks for itself.

MACRO\RESOURCE.INC
Code:
macro menuseparator id,resinfo
 { dd MFT_SEPARATOR,0,id+0
   dw resinfo+0,0
   if ~ resinfo eq
    if resinfo and MFR_END
     menu_level = menu_level - 1
    end if
   end if
   if menu_level = 0
    menu_size
   end if }    


This would be convenient to specify and ID for a menuseparator, the only disadvantage to this, is that it would break existing code in the case where menuseparator is the end of the menu (highly unlikely unless you have ugly line breaks at the end of your menus Rolling Eyes )

Cheers Very Happy

_________________
Raedwulf
Post 16 Mar 2007, 09:30
View user's profile Send private message MSN Messenger Reply with quote
Raedwulf



Joined: 13 Jul 2005
Posts: 375
Location: United Kingdom
Raedwulf 17 Mar 2007, 09:00
Worthwhile to incorporate this in the standard FASM distro?
Post 17 Mar 2007, 09:00
View user's profile Send private message MSN Messenger 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.