flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Metaprogramming with nested CALM-instruction.

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 02 Mar 2020, 19:09
Why would you need to nest _exec_calm statements this way? If the entire statement should only be executed once - at the time of definition - then the inner _exec_xcalm should have no effect at all.
Post 02 Mar 2020, 19:09
View user's profile Send private message Visit poster's website Reply with quote
MaoKo



Joined: 07 May 2019
Posts: 100
Location: Paris/French
MaoKo 02 Mar 2020, 19:58
Yes sorry, I do a mistake.
Something like this:
Code:
_xcalm_exec ~ {
    arrange     A, =arrange =B, ===0
    assemble    A
}
    

I thinking about this because I want to add a syntactic sugar around the unconditional macro:
Code:
macro builder?!
    calminstruction abc?
end builder
if (...)
    macro builder?!
        builder
        arrange     A, =arrange =B, 0
        assemble    A
    end builder
end if
builder
end calminstruction
    
Post 02 Mar 2020, 19:58
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.