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
I tried to assemble the following asm code with a macro:
#define TRIPLE_U64(name, x, y, z) \
DATA name<>+(0)<SB>, x \
DATA name<>+(8)<SB>, y \
DATA name<>+(16)<SB>, z \
GLOBAL name<>(SB), RODATA|NOPTR, 24
TRIPLE_U64(test,
$1, // first
$2, // second
$3 // third
)
What did you expect to see?
No errors.
What did you see instead?
Error: unterminated arg list invoking macro: TRIPLE_U64
The text was updated successfully, but these errors were encountered:
The macro syntax the Go assembler supports is limited. It is intentional to not support all the syntax the C preprocessor. (And, if you run your example in the C preprocessor the result you get might not be what you expected.) Closing as working as intended. Thanks.
What version of Go are you using (
go version
)?What did you do?
I tried to assemble the following asm code with a macro:
What did you expect to see?
No errors.
What did you see instead?
Error:
unterminated arg list invoking macro: TRIPLE_U64
The text was updated successfully, but these errors were encountered: