summaryrefslogtreecommitdiff
path: root/src/xwidget.h
diff options
context:
space:
mode:
authorJoakim Verona <joakim@verona.se>2011-07-18 17:16:34 +0200
committerJoakim Verona <joakim@verona.se>2011-07-18 17:16:34 +0200
commitcd1f21dd9e794a14aa6907296c6ee95cc5f693a1 (patch)
treecaa4bd621b770f0672d919da5023f84018ea7478 /src/xwidget.h
parentf7679969e190ec203eb46e0937185900b72f11c7 (diff)
downloademacs-cd1f21dd9e794a14aa6907296c6ee95cc5f693a1.tar.gz
cleanup xv init test, and introduce PVEC_XWIDGET
Diffstat (limited to 'src/xwidget.h')
-rw-r--r--src/xwidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xwidget.h b/src/xwidget.h
index edd360969dc..c515980ef12 100644
--- a/src/xwidget.h
+++ b/src/xwidget.h
@@ -69,6 +69,8 @@ struct xwidget_view{
/* Test for xwidget (xwidget . spec) (car must be the symbol xwidget)*/
#define XWIDGETP(x) (CONSP (x) && EQ (XCAR (x), Qxwidget))
+/* Test for xwidget pseudovector*/
+#define XXWIDGETP(x) PSEUDOVECTORP (x, PVEC_XWIDGET)
#define XXWIDGET(a) (eassert (XWIDGETP(a)),(struct xwidget *) XPNTR(a))