It appears as if the macro processor, in some situations, is terminating it's scanning too early. It's not satisfying itself that there are no more macro substitutions to be processed.
This code compiles:
Code: Select all
Macro typInt32
i
EndMacro
x.typInt32 ; x.i
And this code compiles:
Code: Select all
Macro typInt32
i
EndMacro
Macro Field (DataName, DataType)
DataName.DataType
EndMacro
Field(x, typInt32) ; x.i
But this code causes the compiler to complain about a missing structure named, "typInt32".
Code: Select all
Macro typInt32
i
EndMacro
Macro Field (DataName, DataType)
DataName.typ#DataType
EndMacro
Field(x, Int32) ; structure not found: typint32
For ten years Caesar ruled with an iron hand, then with a wooden foot, and finally with a piece of string.
~ Spike Milligan