1 // xawrap0 internal header
2 // NOTE: no include guard
3
4 // generates const and non-const variants for
5 // first 10 arguments, using <xawrap1>
6
7  #ifndef _NARGS_CONST
8   #define _NARGS_CONST    5    /* maximum const/non-const permutations */
9  #endif /* _NARGS_CONST */
10
11  #if _NARGS < _NARGS_CONST
12   #define _NARGS_MAX    _NARGS
13
14  #else /* _NARGS < _ARGS_CONST */
15   #define _NARGS_MAX    _NARGS_CONST
16  #endif /* _NARGS < _ARGS_CONST */
17
18   #define _CMASK2    0x00
19   #include <xawrap1>
20
21  #if 5 < _NARGS_MAX
22   #define _CMASK2    0x01
23   #include <xawrap1>
24  #endif /* 5 < _NARGS_MAX */
25
26  #if 6 < _NARGS_MAX
27   #define _CMASK2    0x02
28   #include <xawrap1>
29   #define _CMASK2    0x03
30   #include <xawrap1>
31  #endif /* 6 < _NARGS_MAX */
32
33  #if 7 < _NARGS_MAX
34   #define _CMASK2    0x04
35   #include <xawrap1>
36   #define _CMASK2    0x05
37   #include <xawrap1>
38   #define _CMASK2    0x06
39   #include <xawrap1>
40   #define _CMASK2    0x07
41   #include <xawrap1>
42  #endif /* 7 < _NARGS_MAX */
43
44  #if 8 < _NARGS_MAX
45   #define _CMASK2    0x08
46   #include <xawrap1>
47   #define _CMASK2    0x09
48   #include <xawrap1>
49   #define _CMASK2    0x0A
50   #include <xawrap1>
51   #define _CMASK2    0x0B
52   #include <xawrap1>
53   #define _CMASK2    0x0C
54   #include <xawrap1>
55   #define _CMASK2    0x0D
56   #include <xawrap1>
57   #define _CMASK2    0x0E
58   #include <xawrap1>
59   #define _CMASK2    0x0F
60   #include <xawrap1>
61  #endif /* 8 < _NARGS_MAX */
62
63   #if 9 < _NARGS_MAX
64   #define _CMASK2    0x10
65   #include <xawrap1>
66   #define _CMASK2    0x11
67   #include <xawrap1>
68   #define _CMASK2    0x12
69   #include <xawrap1>
70   #define _CMASK2    0x13
71   #include <xawrap1>
72   #define _CMASK2    0x14
73   #include <xawrap1>
74   #define _CMASK2    0x15
75   #include <xawrap1>
76   #define _CMASK2    0x16
77   #include <xawrap1>
78   #define _CMASK2    0x17
79   #include <xawrap1>
80   #define _CMASK2    0x18
81   #include <xawrap1>
82   #define _CMASK2    0x19
83   #include <xawrap1>
84   #define _CMASK2    0x1A
85   #include <xawrap1>
86   #define _CMASK2    0x1B
87   #include <xawrap1>
88   #define _CMASK2    0x1C
89   #include <xawrap1>
90   #define _CMASK2    0x1D
91   #include <xawrap1>
92   #define _CMASK2    0x1E
93   #include <xawrap1>
94   #define _CMASK2    0x1F
95   #include <xawrap1>
96  #endif /* 9 < _NARGS_MAX */
97
98  #undef _NARGS_MAX
99
Lines 100 ... 103 are skipped.
104