pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:3665:    if(!Pike_fp) {    PIKE_ERROR("destruct",    "Destruct called without argument from callback function.\n",    Pike_sp, args);    }    o=Pike_fp->current_object;    }    if (o->prog && o->prog->flags & PROGRAM_NO_EXPLICIT_DESTRUCT)    PIKE_ERROR("destruct", "Object can't be destructed explicitly.\n",    Pike_sp, args); +  if (o->inhibit_destruct) { +  /* Destruct the object as soon as the inhibit_destruct +  * counter is back down to zero. +  */ +  o->flags |= OBJECT_PENDING_DESTRUCT; +  return; +  }    debug_malloc_touch(o);    destruct_object (o, DESTRUCT_EXPLICIT);    pop_n_elems(args);    destruct_objects_to_destruct();   }      /*! @decl array indices(string|array|mapping|multiset|object x)    *!    *! Return an array of all valid indices for the value @[x].    *!