diff options
-rw-r--r-- | intern/memutil/MEM_CacheLimiter.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/intern/memutil/MEM_CacheLimiter.h b/intern/memutil/MEM_CacheLimiter.h index 3026e827c3f..c1c805b6310 100644 --- a/intern/memutil/MEM_CacheLimiter.h +++ b/intern/memutil/MEM_CacheLimiter.h @@ -66,6 +66,8 @@ class MEM_CacheLimiter; extern "C" { extern void MEM_CacheLimiter_set_maximum(int m); extern int MEM_CacheLimiter_get_maximum(); + // this is rather _ugly_! + extern int mem_in_use; }; #endif @@ -141,9 +143,6 @@ public: delete handle; } void enforce_limits() { - // this is rather _ugly_! - extern int mem_in_use; - int max = MEM_CacheLimiter_get_maximum(); if (max == 0) { return; |