flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Macroinstructions > Passing struct name to macro | 
| Author | 
 | 
| SFeLi 24 Mar 2009, 07:54 No ideas? Is it impossible? | |||
|  24 Mar 2009, 07:54 | 
 | 
| Tomasz Grysztar 24 Mar 2009, 08:00 Your "if type eqtype 0" becomes "if Xyzzy eqtype 0" and is interpreted by preprocessor as a definition of Xyzzy structure with "if" name. To avoid this, you can rearrange the condition, or do it like:
 Code: if (type eqtype 0) | |||
|  24 Mar 2009, 08:00 | 
 | 
| SFeLi 24 Mar 2009, 08:30 Ashamed. Thank you. It works with this condition:     Code: if ~defined(sizeof.#type) & (type eqtype 0) | |||
|  24 Mar 2009, 08:30 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.