From d8f63a7c8f9ec6c1213e219d4b6d5d30ce595cdd Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 4 Jun 2023 13:15:15 +0200 Subject: evaluate call args backwards --- test2.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test2.c (limited to 'test2.c') diff --git a/test2.c b/test2.c new file mode 100644 index 0000000..13ed47c --- /dev/null +++ b/test2.c @@ -0,0 +1,15 @@ +typedef struct v2d { double x,y; } v2d; + + + +void addp(v2d *a, const v2d *b) +{ + a->x += b->x; + a->y += b->y; +} + +v2d add(v2d a, v2d b) +{ + addp(&a, &b); + return a; +} -- cgit v1.2.3