Browse Source

dtoolbase: Add comment clarifying assertion in DeletedBufferChain

[skip ci]
rdb 3 năm trước cách đây
mục cha
commit
d8a537b59b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      dtool/src/dtoolbase/deletedBufferChain.cxx

+ 1 - 0
dtool/src/dtoolbase/deletedBufferChain.cxx

@@ -36,6 +36,7 @@ allocate(size_t size, TypeHandle type_handle) {
 #ifdef USE_DELETED_CHAIN
   // TAU_PROFILE("void *DeletedBufferChain::allocate(size_t, TypeHandle)", "
   // ", TAU_USER);
+  // If this triggers, maybe you forgot ALLOC_DELETED_CHAIN in a subclass?
   assert(size <= _buffer_size);
 
   // Determine how much space to allocate.