src/Packages.cpp
changeset 256 3c184218462d
parent 252 1dee2330aa78
child 263 ba85a47ee414
     1.1 --- a/src/Packages.cpp	Tue Jan 01 20:08:34 2013 -0800
     1.2 +++ b/src/Packages.cpp	Sun Jan 06 13:52:21 2013 -0800
     1.3 @@ -69,6 +69,12 @@
     1.4              return false;
     1.5      }
     1.6  
     1.7 +#ifndef NDEBUG
     1.8 +    // Assert no duplicate names.
     1.9 +    for (unsigned i = 0; i < pkg->contents_->length(); i++)
    1.10 +        assert(pkg->contents_->at(i)->name() != obj->name());
    1.11 +#endif
    1.12 +
    1.13      if (!pkg->contents_->append(zone, obj))
    1.14          return false;
    1.15