flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Determine when struct is being used

Author
Thread Post new topic Reply to topic
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
mike.dld 10 Nov 2007, 06:35
I've declared a couple of structs (using macros struct/ends from struct.inc) and need to check at some place whether some of them were used i.e. if there're some variables of my structs' type. I need this to include additional information about structure. Here's exactly what I'm doing:
Code:
macro structA name
{
  if used name
    display `name,' is used',13,10
  end if
  struct name
}

macro endsA
{
  ends
}

structA A
  a dd ?
endsA

a A

mov [a.a], 0    

The problem is, display never gets executed. What is wrong with the code above and how can I achieve the correct behavior?
Post 10 Nov 2007, 06:35
View user's profile Send private message Visit poster's website ICQ Number 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.