| 1 |
} else static if (Ctor.ARGS == 2) { |
|---|
| 2 |
T t = new T( |
|---|
| 3 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 4 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)) |
|---|
| 5 |
); |
|---|
| 6 |
} else static if (Ctor.ARGS == 3) { |
|---|
| 7 |
T t = new T( |
|---|
| 8 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 9 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)), |
|---|
| 10 |
d_type!(Ctor.arg3)(PyTuple_GetItem(args, 2)) |
|---|
| 11 |
); |
|---|
| 12 |
} else static if (Ctor.ARGS == 4) { |
|---|
| 13 |
T t = new T( |
|---|
| 14 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 15 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)), |
|---|
| 16 |
d_type!(Ctor.arg3)(PyTuple_GetItem(args, 2)), |
|---|
| 17 |
d_type!(Ctor.arg4)(PyTuple_GetItem(args, 3)) |
|---|
| 18 |
); |
|---|
| 19 |
} else static if (Ctor.ARGS == 5) { |
|---|
| 20 |
T t = new T( |
|---|
| 21 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 22 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)), |
|---|
| 23 |
d_type!(Ctor.arg3)(PyTuple_GetItem(args, 2)), |
|---|
| 24 |
d_type!(Ctor.arg4)(PyTuple_GetItem(args, 3)), |
|---|
| 25 |
d_type!(Ctor.arg5)(PyTuple_GetItem(args, 4)) |
|---|
| 26 |
); |
|---|
| 27 |
} else static if (Ctor.ARGS == 6) { |
|---|
| 28 |
T t = new T( |
|---|
| 29 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 30 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)), |
|---|
| 31 |
d_type!(Ctor.arg3)(PyTuple_GetItem(args, 2)), |
|---|
| 32 |
d_type!(Ctor.arg4)(PyTuple_GetItem(args, 3)), |
|---|
| 33 |
d_type!(Ctor.arg5)(PyTuple_GetItem(args, 4)), |
|---|
| 34 |
d_type!(Ctor.arg6)(PyTuple_GetItem(args, 5)) |
|---|
| 35 |
); |
|---|
| 36 |
} else static if (Ctor.ARGS == 7) { |
|---|
| 37 |
T t = new T( |
|---|
| 38 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 39 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)), |
|---|
| 40 |
d_type!(Ctor.arg3)(PyTuple_GetItem(args, 2)), |
|---|
| 41 |
d_type!(Ctor.arg4)(PyTuple_GetItem(args, 3)), |
|---|
| 42 |
d_type!(Ctor.arg5)(PyTuple_GetItem(args, 4)), |
|---|
| 43 |
d_type!(Ctor.arg6)(PyTuple_GetItem(args, 5)), |
|---|
| 44 |
d_type!(Ctor.arg7)(PyTuple_GetItem(args, 6)) |
|---|
| 45 |
); |
|---|
| 46 |
} else static if (Ctor.ARGS == 8) { |
|---|
| 47 |
T t = new T( |
|---|
| 48 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 49 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)), |
|---|
| 50 |
d_type!(Ctor.arg3)(PyTuple_GetItem(args, 2)), |
|---|
| 51 |
d_type!(Ctor.arg4)(PyTuple_GetItem(args, 3)), |
|---|
| 52 |
d_type!(Ctor.arg5)(PyTuple_GetItem(args, 4)), |
|---|
| 53 |
d_type!(Ctor.arg6)(PyTuple_GetItem(args, 5)), |
|---|
| 54 |
d_type!(Ctor.arg7)(PyTuple_GetItem(args, 6)), |
|---|
| 55 |
d_type!(Ctor.arg8)(PyTuple_GetItem(args, 7)) |
|---|
| 56 |
); |
|---|
| 57 |
} else static if (Ctor.ARGS == 9) { |
|---|
| 58 |
T t = new T( |
|---|
| 59 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 60 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)), |
|---|
| 61 |
d_type!(Ctor.arg3)(PyTuple_GetItem(args, 2)), |
|---|
| 62 |
d_type!(Ctor.arg4)(PyTuple_GetItem(args, 3)), |
|---|
| 63 |
d_type!(Ctor.arg5)(PyTuple_GetItem(args, 4)), |
|---|
| 64 |
d_type!(Ctor.arg6)(PyTuple_GetItem(args, 5)), |
|---|
| 65 |
d_type!(Ctor.arg7)(PyTuple_GetItem(args, 6)), |
|---|
| 66 |
d_type!(Ctor.arg8)(PyTuple_GetItem(args, 7)), |
|---|
| 67 |
d_type!(Ctor.arg9)(PyTuple_GetItem(args, 8)) |
|---|
| 68 |
); |
|---|
| 69 |
} else static if (Ctor.ARGS == 10) { |
|---|
| 70 |
T t = new T( |
|---|
| 71 |
d_type!(Ctor.arg1)(PyTuple_GetItem(args, 0)), |
|---|
| 72 |
d_type!(Ctor.arg2)(PyTuple_GetItem(args, 1)), |
|---|
| 73 |
d_type!(Ctor.arg3)(PyTuple_GetItem(args, 2)), |
|---|
| 74 |
d_type!(Ctor.arg4)(PyTuple_GetItem(args, 3)), |
|---|
| 75 |
d_type!(Ctor.arg5)(PyTuple_GetItem(args, 4)), |
|---|
| 76 |
d_type!(Ctor.arg6)(PyTuple_GetItem(args, 5)), |
|---|
| 77 |
d_type!(Ctor.arg7)(PyTuple_GetItem(args, 6)), |
|---|
| 78 |
d_type!(Ctor.arg8)(PyTuple_GetItem(args, 7)), |
|---|
| 79 |
d_type!(Ctor.arg9)(PyTuple_GetItem(args, 8)), |
|---|
| 80 |
d_type!(Ctor.arg10)(PyTuple_GetItem(args, 9)) |
|---|
| 81 |
); |
|---|
| 82 |
} |
|---|