Joined: 16 Jun 2003
Location: Kraków, Poland
Splitting list of symbols
This is macro which may become useful for those, who write some complex macroinstructions. It may be used just as is, but it can also serve as a reference.
It's purpose is to split given sequence of symbols on boundaries defined by specified separator, and then call the specified macroinstruction with multiple parameters, each being one of the splitted chunks.
will cause this operation to be performed:
When no separator is specified, the sequence is splitted to the single symbols, so this:
will be unrolled to:
The sequence of symbols can also be the value of symbolic constant, so the above sample is eqivalent to:
Note that this macro is better from the above one, as it encloses each parameter to macro within < and > characters, so splitted parts may contain commas. On the other hand it doesn't support an empty separator - but splitting to single symbols can be done with the "irps" directive directly.
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