flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > problem passing a struc to a macro |
Author |
|
Tomasz Grysztar 06 May 2005, 04:56
Code: macro doRect hDC, rc { invoke Rectangle, [hDC],\ rc#.left,\ rc#.top,\ rc#.right,\ rc#.bottom } |
|||
06 May 2005, 04:56 |
|
vid 06 May 2005, 14:13
remember that in fasm "." character is normal part of name, like any letter or digit, not operator to separate structure members. Looking like such operator is only kind-of standard and behavior of "struc" macrodirective.
And since "." is normal part of name, FASM has seen "rc.left" symbol, which isn't equal with "rc" and so it wasnt replaced. |
|||
06 May 2005, 14:13 |
|
LocoDelAssembly 06 May 2005, 14:26
Thanks to both, I tested the code of Privalov and it works fine
Vid thanks for your reply, I did not know what you say about the dot. |
|||
06 May 2005, 14:26 |
|
Tomasz Grysztar 06 May 2005, 16:46
BTW, fasm's syntax highlighting (applied also on this forum) shows you this fact - the special characters (which split words) are shown in blue, and dot isn't.
|
|||
06 May 2005, 16:46 |
|
LocoDelAssembly 06 May 2005, 20:46
ahp, good point
thanks again Privalov |
|||
06 May 2005, 20:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.