flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
LocoDelAssembly 10 Nov 2007, 04:44
This is the code I used
Code: macro name a,b,c { if a eq true a#.param = 1 end if if ~ defined a#.param ;?????? display "hello" end if } name aaa,sf,asd But I couldn't reproduce the error. And if I use "name true, sf, asd" no error neither and "hello" is not displayed. Can you provide more info about what are you trying to do and if the "undefined symbol" error is really triggered by this macro? Providing a minimal code that produces this error would be the best. |
|||
![]() |
|
mike.dld 10 Nov 2007, 06:41
luckystar wrote: if call marco with "name,aaa,sf,asdf" to be get error You don't need that comma after macro name. Just write it as LocoDelAssembly proposed: name aaa,sf,asd. When you write this comma, it means that you pass nothing as first argument to your macro, thus making "aaa" second arg, "sf" third and "asdf" fourth. This makes "if a eq true" never succeed. |
|||
![]() |
|
LocoDelAssembly 10 Nov 2007, 15:59
mike, but the error for writing that extra comma is not "undefined symbol" but "invalid macro arguments", so the error seems to be located somewhere else but luckystar provided too few code to trigger the error he says.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.