1.1 --- a/templates/progops.c Thu Nov 24 22:43:29 2016 +0100
1.2 +++ b/templates/progops.c Thu Nov 24 23:42:19 2016 +0100
1.3 @@ -42,6 +42,15 @@
1.4 return attr;
1.5 }
1.6
1.7 +/* A helper for raising type errors within common operations. */
1.8 +
1.9 +void __raise_type_error()
1.10 +{
1.11 + __attr args[1];
1.12 + __attr exc = __TYPE_ERROR_INSTANTIATOR(args);
1.13 + __Raise(exc);
1.14 +}
1.15 +
1.16 /* Generic invocation operations. */
1.17
1.18 /* Invoke the given callable, supplying keyword argument details in the given