summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/cg
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-19 21:24:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-19 21:24:35 (GMT)
commitf955784f0cfeecb94d3f2ade83a5ea548391f74b (patch)
tree3f112a082ca586d310f0a70001ab4bc14e087cca /Mac/Modules/cg
parent5bb2f6497f6b4455e4da64ef049bf43cd1c2215a (diff)
downloadcpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.zip
cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.gz
cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.bz2
Regenerated with inheritance-aware xxxx_Check() macros.
Diffstat (limited to 'Mac/Modules/cg')
-rwxr-xr-xMac/Modules/cg/_CGmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/cg/_CGmodule.c b/Mac/Modules/cg/_CGmodule.c
index 5642164..fbafc6c 100755
--- a/Mac/Modules/cg/_CGmodule.c
+++ b/Mac/Modules/cg/_CGmodule.c
@@ -212,7 +212,7 @@ static PyObject *CG_Error;
PyTypeObject CGContextRef_Type;
-#define CGContextRefObj_Check(x) ((x)->ob_type == &CGContextRef_Type)
+#define CGContextRefObj_Check(x) ((x)->ob_type == &CGContextRef_Type || PyObject_TypeCheck((x), &CGContextRef_Type))
typedef struct CGContextRefObject {
PyObject_HEAD