Branch: Tag:

2004-09-28

2004-09-28 23:58:35 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.63
Rev: src/mapping.h:1.57
Rev: src/multiset.h:1.37
Rev: src/object.h:1.87
Rev: src/program.h:1.205

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: mapping.h,v 1.56 2004/09/27 21:37:13 mast Exp $ + || $Id: mapping.h,v 1.57 2004/09/28 23:58:35 mast Exp $   */      #ifndef MAPPING_H
87:    struct mapping *m_=(M); \    debug_malloc_touch(m_); \    DO_IF_DEBUG ( \ +  DO_IF_PIKE_CLEANUP ( \    if (gc_external_refs_zapped) \ -  gc_check_zapped (m_, PIKE_T_MAPPING, __FILE__, __LINE__); \ -  ); \ +  gc_check_zapped (m_, PIKE_T_MAPPING, __FILE__, __LINE__))); \    if(!sub_ref(m_)) \    really_free_mapping(m_); \    }while(0)