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:
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?