flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > conditional assembly |
Author |
|
LocoDelAssembly 28 Feb 2007, 14:55
Code: struc db [args]{ common if used . . db args end if} The code above doesn't works? |
|||
28 Feb 2007, 14:55 |
|
arafel 28 Feb 2007, 15:04
works perfectly. thanks!
|
|||
28 Feb 2007, 15:04 |
|
vid 28 Feb 2007, 15:39
arafael: sounds like you are doing some serious project in FASM?
|
|||
28 Feb 2007, 15:39 |
|
arafel 28 Feb 2007, 15:45
nah, just fooling around
|
|||
28 Feb 2007, 15:45 |
|
vid 28 Feb 2007, 16:01
personally i don't think this is a good idea. db should work as expected. i suggest to make another macro for this purpose, like:
Code: struc string [text] { common if used . . db text,0 end if } string "I'm not a string" string "hovno",10,13,"frndzalica" Prevents lot of confusion and stupid bugs |
|||
28 Feb 2007, 16:01 |
|
arafel 28 Feb 2007, 16:13
thanks! i'll try this as well.
|
|||
28 Feb 2007, 16:13 |
|
vid 28 Feb 2007, 16:21
sorry, example was wrong. usage should look like this:
Code: _not_a_string string "I'm not a string" _hovno string "hovno",10,13,"frndzalica" |
|||
28 Feb 2007, 16:21 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.