[Zope-Checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - proxy.h:1.1.2.2
Fred L. Drake, Jr.
fdrake@acm.org
Fri, 26 Apr 2002 09:46:21 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv18421/lib/python/Zope/ContextWrapper
Modified Files:
Tag: SecurityProxy-branch
proxy.h
Log Message:
Add Proxy_CheckExact() to client API.
=== Zope3/lib/python/Zope/ContextWrapper/proxy.h 1.1.2.1 => 1.1.2.2 ===
#define ProxyType (_proxy_api->proxytype)
#define Proxy_Check(obj) (_proxy_api->check((obj)))
+#define Proxy_CheckExact(obj) ((obj)->ob_type == ProxyType)
#define Proxy_New(obj) (_proxy_api->create((obj)))
#define Proxy_GetObject(proxy) (_proxy_api->getobject((proxy)))