You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and it works, whithout forcing an additionnal _, as it is added locally in the macro. Unfortunately, this does not work by prefixing macro argument with a _.
If there is no technical reason to forbid argument expansion around . (dot), it would be nice to correct this. Thanks!
The text was updated successfully, but these errors were encountered:
sub-word substitution currently works only for id delimited by underscore, ie. ID1_ID2 and the underscore is part of the result too.
The dot char is not part of the id IIRC.
So your original idea to get blah.argValue is not supported at this moment.
The {} is unlikely to happen, it already works as virtual memory content reader and struct initializer list delimiter, I think this would become ambiguous in some edge case.
Do you need the dot there because the result is addressing some main.local label or structure member, so you can't change to underscore instead of dot I guess?
so far I somewhat like the idea from #246 of standalone operator _ during substitution (preprocess) phase... until I figure out what's wrong about that one. {{... is still how struct initializers may look, so I'm not convinced. But it's an option, written down, so ... let's see what will happen (most likely nothing anytime soon, but eventually or when somebody else get more active... :) )
Macros arguments behave oddly when used in conjunction with '.':
LD HL,blah.arg
is expanded asLD HL,blah.arg
instead ifblah.argValue
. Instead, it needs to be written:but this is not great, as it force to use an additionnal _ in front of argValue definition.
Same:
does not expand correctly. Here, a simple fix is to do:
and it works, whithout forcing an additionnal _, as it is added locally in the macro. Unfortunately, this does not work by prefixing macro argument with a _.
If there is no technical reason to forbid argument expansion around . (dot), it would be nice to correct this. Thanks!
The text was updated successfully, but these errors were encountered: