Changeset 1587


Ignore:
Timestamp:
Oct 28, 2004, 1:12:33 AM (16 years ago)
Author:
orlov
Message:
  • Fixed debugging output.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/runtime/rf_expr.ih

    r1516 r1587  
    4444  if (mem_chunk) mem_chunk->inc_ref_count();
    4545  D(printf("+ %p(%p,%p,%p:%u) by generic constructor\n",
    46            this, first, last, mem_chunk, mem_chunk->get_ref_count());)
     46           this, first, last,
     47                 mem_chunk, mem_chunk ? mem_chunk->get_ref_count() : 0);)
    4748}
    4849
     
    5859//    inc_ref_count();
    5960  D(printf("+ %p(%p,%p,%p:%u) from *%p\n",
    60         this, first, last, mem_chunk, mem_chunk->get_ref_count(), _expr);)
     61        this, first, last,
     62              mem_chunk, mem_chunk ? mem_chunk->get_ref_count() : 0, _expr);)
    6163}
    6264
     
    147149  if (mem_chunk) mem_chunk->inc_ref_count();
    148150  D(printf("+ %p(%p,%p,%p:%u) by copy from %p\n",
    149            this, first, last, mem_chunk, mem_chunk->get_ref_count(), &_expr);)
     151           this, first, last,
     152                 mem_chunk, mem_chunk ? mem_chunk->get_ref_count() : 0,
     153                 &_expr);)
    150154}
    151155
     
    245249{
    246250  D(printf("- %p(%p,%p,%p:%u)\n",
    247         this, first, last, mem_chunk, mem_chunk->get_ref_count() - 1);)
     251        this, first, last,
     252              mem_chunk, mem_chunk ? mem_chunk->get_ref_count() - 1 : 0);)
    248253  //
    249254  // Decrement reference counter and destroy an object if it is zero
Note: See TracChangeset for help on using the changeset viewer.