Explorar el Código

dtoolbase: Add comment clarifying assertion in DeletedBufferChain

[skip ci]
rdb hace 3 años
padre
commit
d8a537b59b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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
 #ifdef USE_DELETED_CHAIN
   // TAU_PROFILE("void *DeletedBufferChain::allocate(size_t, TypeHandle)", "
   // TAU_PROFILE("void *DeletedBufferChain::allocate(size_t, TypeHandle)", "
   // ", TAU_USER);
   // ", TAU_USER);
+  // If this triggers, maybe you forgot ALLOC_DELETED_CHAIN in a subclass?
   assert(size <= _buffer_size);
   assert(size <= _buffer_size);
 
 
   // Determine how much space to allocate.
   // Determine how much space to allocate.