From d8a537b59b909c13e3109b6ddda14e321ce3a2fc Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 31 Oct 2022 19:26:59 +0100 Subject: [PATCH] dtoolbase: Add comment clarifying assertion in DeletedBufferChain [skip ci] --- dtool/src/dtoolbase/deletedBufferChain.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/dtool/src/dtoolbase/deletedBufferChain.cxx b/dtool/src/dtoolbase/deletedBufferChain.cxx index d009510ad3..8c6ae42860 100644 --- a/dtool/src/dtoolbase/deletedBufferChain.cxx +++ b/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.