Branch: Tag:

2004-09-28

2004-09-28 23:58:26 by Martin Stjernholm <mast@lysator.liu.se>

Enable the gc_check_zapped stuff only when rtldebug and cleanup-at-exit are
active at the same time.

Rev: src/array.h:1.65
Rev: src/mapping.h:1.59
Rev: src/multiset.h:1.38
Rev: src/object.h:1.88
Rev: src/program.h:1.211

2:   || 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: array.h,v 1.64 2004/09/27 21:37:22 mast Exp $ + || $Id: array.h,v 1.65 2004/09/28 23:58:26 mast Exp $   */      #ifndef ARRAY_H
72:    struct array *v_=(V); \    debug_malloc_touch(v_); \    DO_IF_DEBUG ( \ +  DO_IF_PIKE_CLEANUP ( \    if (gc_external_refs_zapped) \ -  gc_check_zapped (v_, PIKE_T_ARRAY, __FILE__, __LINE__); \ -  ); \ +  gc_check_zapped (v_, PIKE_T_ARRAY, __FILE__, __LINE__))); \    if(!sub_ref(v_)) \    really_free_array(v_); \    }while(0)