From 9a7576fe2cdd169313b5e25be6bf485407adb496 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 7 Apr 2011 22:05:45 +0200 Subject: Move to macro-based logging checks in the C++ code No functions should be called for log statements that turn out to be inactive. --- src/rt/rust_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rt/rust_util.h') diff --git a/src/rt/rust_util.h b/src/rt/rust_util.h index 14a865bd..b36b7763 100644 --- a/src/rt/rust_util.h +++ b/src/rt/rust_util.h @@ -24,7 +24,7 @@ ptr_vec::ptr_vec(rust_dom *dom) : data(new (dom) T*[alloc]) { I(dom, data); - dom->log(rust_log::MEM, + DLOG(dom, rust_log::MEM, "new ptr_vec(data=0x%" PRIxPTR ") -> 0x%" PRIxPTR, (uintptr_t)data, (uintptr_t)this); } @@ -33,7 +33,7 @@ template ptr_vec::~ptr_vec() { I(dom, data); - dom->log(rust_log::MEM, + DLOG(dom, rust_log::MEM, "~ptr_vec 0x%" PRIxPTR ", data=0x%" PRIxPTR, (uintptr_t)this, (uintptr_t)data); I(dom, fill == 0); -- cgit v1.2.3