diff options
author | Oz Linden <oz@lindenlab.com> | 2012-10-10 21:40:10 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-10-10 21:40:10 -0400 |
commit | 1709952adbb3ad3ba4eb7d5be39c0c67c389c7c5 (patch) | |
tree | ad71b6021639d4d9d89c9992aff13f000dd0248f /indra/llcommon/llmemory.h | |
parent | cb5a0a5686799ec834f16a0bc273d24f62140753 (diff) | |
parent | 3f45fa719e4c72e528801d4d8330a114e5458f30 (diff) |
pull back 3.4.1-beta6 fixes
Diffstat (limited to 'indra/llcommon/llmemory.h')
-rw-r--r-- | indra/llcommon/llmemory.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/llcommon/llmemory.h b/indra/llcommon/llmemory.h index f37e8459ff..40cde485cf 100644 --- a/indra/llcommon/llmemory.h +++ b/indra/llcommon/llmemory.h @@ -27,6 +27,13 @@ #define LLMEMORY_H #include "llmemtype.h" + +#if LL_WINDOWS && LL_DEBUG +#define LL_CHECK_MEMORY llassert(_CrtCheckMemory()); +#else +#define LL_CHECK_MEMORY +#endif + inline void* ll_aligned_malloc( size_t size, int align ) { void* mem = malloc( size + (align - 1) + sizeof(void*) ); @@ -90,7 +97,7 @@ inline void* ll_aligned_realloc_16(void* ptr, size_t size, size_t old_size) // r #else // USE_TCMALLOC // ll_aligned_foo_16 are not needed with tcmalloc #define ll_aligned_malloc_16 malloc -#define ll_aligned_realloc_16 realloc +#define ll_aligned_realloc_16(a,b,c) realloc(a,b) #define ll_aligned_free_16 free #endif // USE_TCMALLOC |