aboutsummaryrefslogtreecommitdiff
path: root/desiredata/src/desire.h
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-05-28 19:02:52 +0000
committerN.N. <matju@users.sourceforge.net>2009-05-28 19:02:52 +0000
commitbab3e626c2cc536a32c2817b25f86bb6745d1231 (patch)
tree591d3b9fb1534f19c0ee215d769106458f882ed4 /desiredata/src/desire.h
parent53d632ecef1dc6ad1077f91dcc60daff21c1c2a3 (diff)
gros shortcut d'la mort
svn path=/trunk/; revision=11548
Diffstat (limited to 'desiredata/src/desire.h')
-rw-r--r--desiredata/src/desire.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/desiredata/src/desire.h b/desiredata/src/desire.h
index 0833d61e..56e0da0a 100644
--- a/desiredata/src/desire.h
+++ b/desiredata/src/desire.h
@@ -369,4 +369,13 @@ inline static int throw_if_negative(int n) {if (n<0) throw VeryUnlikelyError();
#define asprintf(ARGS...) throw_if_negative( asprintf(ARGS))
#define vasprintf(ARGS...) throw_if_negative(vasprintf(ARGS))
+#define PERFORM1ARGS(A,a) A a = (A)w[1];
+#define PERFORM2ARGS(A,a,B,b) PERFORM1ARGS(A,a) B b = (B)w[2];
+#define PERFORM3ARGS(A,a,B,b,C,c) PERFORM2ARGS(A,a,B,b) C c = (C)w[3];
+#define PERFORM4ARGS(A,a,B,b,C,c,D,d) PERFORM3ARGS(A,a,B,b,C,c) D d = (D)w[4];
+#define PERFORM5ARGS(A,a,B,b,C,c,D,d,E,e) PERFORM4ARGS(A,a,B,b,C,c,D,d) E e = (E)w[5];
+#define PERFORM6ARGS(A,a,B,b,C,c,D,d,E,e,F,f) PERFORM5ARGS(A,a,B,b,C,c,D,d,E,e) F f = (F)w[6];
+#define PERFORM7ARGS(A,a,B,b,C,c,D,d,E,e,F,f,G,g) PERFORM6ARGS(A,a,B,b,C,c,D,d,E,e,F,f) G g = (G)w[7];
+#define PERFORM8ARGS(A,a,B,b,C,c,D,d,E,e,F,f,G,g,H,h) PERFORM7ARGS(A,a,B,b,C,c,D,d,E,e,F,f,G,g) H h = (H)w[8];
+
#endif /* __DESIRE_H */