1.1 --- a/templates/progops.c Sun Oct 30 13:14:45 2016 +0100
1.2 +++ b/templates/progops.c Sun Oct 30 17:54:27 2016 +0100
1.3 @@ -30,7 +30,7 @@
1.4 is specified, starting with any context argument.
1.5 */
1.6
1.7 -__attr __invoke(__attr callable,
1.8 +__attr __invoke(__attr callable, int always_callable,
1.9 unsigned int nkwargs, __param kwcodes[], __attr kwargs[],
1.10 unsigned int nargs, __attr args[])
1.11 {
1.12 @@ -96,7 +96,9 @@
1.13
1.14 /* Call with the prepared arguments. */
1.15
1.16 - return __load_via_object(callable.value, __pos___fn__).fn(allargs);
1.17 + return (always_callable ? __load_via_object(callable.value, __pos___fn__)
1.18 + : __check_and_load_via_object(callable.value, __pos___fn__, __code___fn__)
1.19 + ).fn(allargs);
1.20 }
1.21
1.22 /* Error routines. */