src/preprocs/yapp/tests/ddefine.pre \
src/preprocs/yapp/tests/rdefine.asm \
src/preprocs/yapp/tests/rdefine.pre \
+ src/preprocs/yapp/tests/pdefine.asm \
+ src/preprocs/yapp/tests/pdefine.pre \
src/preprocs/yapp/tests/ifdef.asm \
src/preprocs/yapp/tests/ifdef.pre \
src/preprocs/yapp/tests/include.asm \
src/preprocs/yapp/tests/include.pre \
src/preprocs/yapp/tests/rinclude.asm \
- src/preprocs/yapp/tests/rinclude.pre
+ src/preprocs/yapp/tests/rinclude.pre \
+ src/preprocs/yapp/tests/params.asm \
+ src/preprocs/yapp/tests/params.pre
CLEANFILES += \
raw.yp \
define.yp \
ddefine.yp \
rdefine.yp \
+ pdefine.yp \
ifdef.yp \
include.yp \
- rinclude.yp
+ rinclude.yp \
+ params.yp
--- /dev/null
+%define foo(a, b) (a)+(b)
+ foo((a+b,c),(d*e,f))
--- /dev/null
+%line 2+1 ./src/preprocs/yapp/tests/params.asm
+ ((a+b,c))+((d*e,f))
--- /dev/null
+%define foo(bar) bar+1
+%define foo(bar, baz) bar-baz
+ mov ax, foo
+ mov ax, foo(5)
+ mov ax, foo(5, 3)
+ mov ax, foo(5, 6, 7)
--- /dev/null
+%line 3+1 ./src/preprocs/yapp/tests/pdefine.asm
+ mov ax, foo
+ mov ax, 5+1
+ mov ax, 5-3
+ mov ax, foo(5, 6, 7)
src/preprocs/yapp/tests/ddefine.pre \
src/preprocs/yapp/tests/rdefine.asm \
src/preprocs/yapp/tests/rdefine.pre \
+ src/preprocs/yapp/tests/pdefine.asm \
+ src/preprocs/yapp/tests/pdefine.pre \
src/preprocs/yapp/tests/ifdef.asm \
src/preprocs/yapp/tests/ifdef.pre \
src/preprocs/yapp/tests/include.asm \
src/preprocs/yapp/tests/include.pre \
src/preprocs/yapp/tests/rinclude.asm \
- src/preprocs/yapp/tests/rinclude.pre
+ src/preprocs/yapp/tests/rinclude.pre \
+ src/preprocs/yapp/tests/params.asm \
+ src/preprocs/yapp/tests/params.pre
CLEANFILES += \
raw.yp \
define.yp \
ddefine.yp \
rdefine.yp \
+ pdefine.yp \
ifdef.yp \
include.yp \
- rinclude.yp
+ rinclude.yp \
+ params.yp
--- /dev/null
+%define foo(a, b) (a)+(b)
+ foo((a+b,c),(d*e,f))
--- /dev/null
+%line 2+1 ./src/preprocs/yapp/tests/params.asm
+ ((a+b,c))+((d*e,f))
--- /dev/null
+%define foo(bar) bar+1
+%define foo(bar, baz) bar-baz
+ mov ax, foo
+ mov ax, foo(5)
+ mov ax, foo(5, 3)
+ mov ax, foo(5, 6, 7)
--- /dev/null
+%line 3+1 ./src/preprocs/yapp/tests/pdefine.asm
+ mov ax, foo
+ mov ax, 5+1
+ mov ax, 5-3
+ mov ax, foo(5, 6, 7)