preproc: Fix the token in expanding the %+/%- macro-parameters
[nasm.git] / test / evalmacro.asm
blobf93f6939085caa5cf6bd393408cc03b5532a9698
1 %define tonum(=x) x
3 dd tonum(1+3)
4 dd tonum(5*7)
6 %define mixed(a,=b,c) (a + b)
7 %define mixed2(a,=b,) (a + b)
8 %define ALPHA (1 + 2)
9 %define BETA (3 + 4)
10 %define GAMMA (5 + 6)
12 dd mixed(ALPHA, BETA, GAMMA)
13 dd mixed2(ALPHA, BETA, GAMMA)