]> git.eshelyaron.com Git - emacs.git/commitdiff
(OVERLAY_POSITION): Use the new type-test macros.
authorKarl Heuer <kwzh@gnu.org>
Tue, 15 Nov 1994 23:55:03 +0000 (23:55 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 15 Nov 1994 23:55:03 +0000 (23:55 +0000)
src/buffer.h

index 2adcd95b0cc753042267c45f8ae78a10de871931..132db637eb782b338192a59ce633461ed5f2e468 100644 (file)
@@ -426,9 +426,8 @@ extern Lisp_Object Vtransient_mark_mode;
 /* Return the actual buffer position for the marker P.
    We assume you know which buffer it's pointing into.  */
 
-#define OVERLAY_POSITION(P)                                            \
- (XGCTYPE ((P)) == Lisp_Misc && XMISC ((P))->type == Lisp_Misc_Marker  \
-  ? marker_position ((P)) : (abort (), 0))
+#define OVERLAY_POSITION(P) \
+ (GC_MARKERP (P) ? marker_position (P) : (abort (), 0))
 
 /* Allocation of buffer text.  */