|
21 | 21 | #include "attribute.c" |
22 | 22 | //#define DEFINE_DeeObject_TGenericGetAttrStringHash |
23 | 23 | //#define DEFINE_DeeObject_TGenericGetAttrStringLenHash |
24 | | -//#define DEFINE_DeeObject_TGenericBoundAttrStringHash |
| 24 | +#define DEFINE_DeeObject_TGenericBoundAttrStringHash |
25 | 25 | //#define DEFINE_DeeObject_TGenericBoundAttrStringLenHash |
26 | 26 | //#define DEFINE_DeeObject_TGenericCallAttrStringHash |
27 | 27 | //#define DEFINE_DeeObject_TGenericCallAttrStringLenHash |
|
44 | 44 | //#define DEFINE_DeeObject_TGenericFindPrivateAttrInfoStringHash |
45 | 45 | //#define DEFINE_DeeObject_TGenericFindPrivateAttrInfoStringLenHash |
46 | 46 | //#define DEFINE_DeeObject_TGenericFindAttr |
47 | | -#define DEFINE_DeeObject_TGenericIterAttr |
| 47 | +//#define DEFINE_DeeObject_TGenericIterAttr |
48 | 48 | #endif /* __INTELLISENSE__ */ |
49 | 49 |
|
50 | 50 | #include <deemon/api.h> |
|
105 | 105 | #elif defined(DEFINE_DeeObject_TGenericBoundAttrStringHash) |
106 | 106 | #define LOCAL_DeeObject_TGenericAccessAttr DeeObject_TGenericBoundAttrStringHash |
107 | 107 | #define LOCAL_DeeType_AccessCachedAttr(tp_self, self) DeeType_BoundCachedAttrStringHash(tp_self, self, attr, hash) |
108 | | -#define LOCAL_DeeType_AccessMethodAttr(tp_invoker, tp_self, self) (DeeType_HasMethodAttrStringHash(tp_invoker, tp_self, attr, hash) ? 1 : -2) |
| 108 | +#define LOCAL_DeeType_AccessMethodAttr(tp_invoker, tp_self, self) DeeType_BoundMethodAttrStringHash(tp_invoker, tp_self, self, attr, hash) |
109 | 109 | #define LOCAL_DeeType_AccessGetSetAttr(tp_invoker, tp_self, self) DeeType_BoundGetSetAttrStringHash(tp_invoker, tp_self, self, attr, hash) |
110 | 110 | #define LOCAL_DeeType_AccessMemberAttr(tp_invoker, tp_self, self) DeeType_BoundMemberAttrStringHash(tp_invoker, tp_self, self, attr, hash) |
111 | 111 | #define LOCAL_IS_BOUND |
112 | 112 | #elif defined(DEFINE_DeeObject_TGenericBoundAttrStringLenHash) |
113 | 113 | #define LOCAL_DeeObject_TGenericAccessAttr DeeObject_TGenericBoundAttrStringLenHash |
114 | 114 | #define LOCAL_DeeType_AccessCachedAttr(tp_self, self) DeeType_BoundCachedAttrStringLenHash(tp_self, self, attr, attrlen, hash) |
115 | | -#define LOCAL_DeeType_AccessMethodAttr(tp_invoker, tp_self, self) (DeeType_HasMethodAttrStringLenHash(tp_invoker, tp_self, attr, attrlen, hash) ? 1 : -2) |
| 115 | +#define LOCAL_DeeType_AccessMethodAttr(tp_invoker, tp_self, self) DeeType_BoundMethodAttrStringLenHash(tp_invoker, tp_self, self, attr, attrlen, hash) |
116 | 116 | #define LOCAL_DeeType_AccessGetSetAttr(tp_invoker, tp_self, self) DeeType_BoundGetSetAttrStringLenHash(tp_invoker, tp_self, self, attr, attrlen, hash) |
117 | 117 | #define LOCAL_DeeType_AccessMemberAttr(tp_invoker, tp_self, self) DeeType_BoundMemberAttrStringLenHash(tp_invoker, tp_self, self, attr, attrlen, hash) |
118 | 118 | #define LOCAL_IS_BOUND |
|
0 commit comments