1.1 --- a/templates/native/introspection.c Sat Nov 06 17:06:01 2021 +0100
1.2 +++ b/templates/native/introspection.c Sun Nov 07 01:18:51 2021 +0100
1.3 @@ -1,6 +1,6 @@
1.4 /* Native functions for introspection operations.
1.5
1.6 -Copyright (C) 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.7 +Copyright (C) 2016, 2017, 2021 Paul Boddie <paul@boddie.org.uk>
1.8
1.9 This program is free software; you can redistribute it and/or modify it under
1.10 the terms of the GNU General Public License as published by the Free Software
1.11 @@ -26,7 +26,7 @@
1.12
1.13 /* Introspection. */
1.14
1.15 -__attr __fn_native_introspection_object_getattr(__attr __self, __attr obj, __attr name, __attr _default)
1.16 +__attr __fn_native_introspection_object_getattr(__attr __stack, __attr __self, __attr obj, __attr name, __attr _default)
1.17 {
1.18 /* name interpreted as string */
1.19 __attr key = __load_via_object(__VALUE(name), __key__);
1.20 @@ -54,7 +54,7 @@
1.21 return out;
1.22 }
1.23
1.24 -__attr __fn_native_introspection_isinstance(__attr __self, __attr obj, __attr cls)
1.25 +__attr __fn_native_introspection_isinstance(__attr __stack, __attr __self, __attr obj, __attr cls)
1.26 {
1.27 /* cls must be a class. */
1.28 if (__is_instance_subclass(__VALUE(obj), cls))
1.29 @@ -63,7 +63,7 @@
1.30 return __builtins___boolean_False;
1.31 }
1.32
1.33 -__attr __fn_native_introspection_issubclass(__attr __self, __attr obj, __attr cls)
1.34 +__attr __fn_native_introspection_issubclass(__attr __stack, __attr __self, __attr obj, __attr cls)
1.35 {
1.36 /* obj and cls must be classes. */
1.37 if (__is_subclass(__VALUE(obj), cls))