From 7409d07d2007a640747d8727ded8e03213d05198 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Wed, 21 Apr 2004 19:13:29 +0200 Subject: [PATCH] Fixed trivial bug in the PIKE_OBJ_DESTRUCTED macro - it's not reversed now.. :P Rev: src/object.h:1.83 --- src/object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object.h b/src/object.h index d981707107..615fb8f80c 100644 --- a/src/object.h +++ b/src/object.h @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: object.h,v 1.82 2004/04/18 02:16:06 mast Exp $ +|| $Id: object.h,v 1.83 2004/04/21 17:13:29 mast Exp $ */ #ifndef OBJECT_H @@ -144,7 +144,7 @@ void check_all_objects(void); #define gc_cycle_check_object(X, WEAK) \ gc_cycle_enqueue((gc_cycle_check_cb *) real_gc_cycle_check_object, (X), (WEAK)) -#define PIKE_OBJ_DESTRUCTED(o) (o->prog) +#define PIKE_OBJ_DESTRUCTED(o) (!(o)->prog) #define PIKE_OBJ_INITED(o) (o->prog && (o->prog->flags & PROGRAM_PASS_1_DONE) && !((o->prog->flags & PROGRAM_AVOID_CHECK))) #define destruct_objects_to_destruct() do{ if(objects_to_destruct) low_destruct_objects_to_destruct(); }while(0) -- GitLab