aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_task_list.cpp
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-04-07 22:05:45 +0200
committerGraydon Hoare <[email protected]>2011-04-07 15:15:30 -0700
commit9a7576fe2cdd169313b5e25be6bf485407adb496 (patch)
tree36f5c9a5baaae95be1fb3cdc9b5b76814b08e803 /src/rt/rust_task_list.cpp
parentrustc: Pointer cast when autodereferencing boxed tag types (diff)
downloadrust-9a7576fe2cdd169313b5e25be6bf485407adb496.tar.xz
rust-9a7576fe2cdd169313b5e25be6bf485407adb496.zip
Move to macro-based logging checks in the C++ code
No functions should be called for log statements that turn out to be inactive.
Diffstat (limited to 'src/rt/rust_task_list.cpp')
-rw-r--r--src/rt/rust_task_list.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_task_list.cpp b/src/rt/rust_task_list.cpp
index 635ee136..dd6aaeb5 100644
--- a/src/rt/rust_task_list.cpp
+++ b/src/rt/rust_task_list.cpp
@@ -7,10 +7,10 @@ rust_task_list::rust_task_list (rust_dom *dom, const char* name) :
void
rust_task_list::delete_all() {
- dom->log(rust_log::TASK, "deleting all %s tasks", name);
+ DLOG(dom, rust_log::TASK, "deleting all %s tasks", name);
while (is_empty() == false) {
rust_task *task = pop_value();
- dom->log(rust_log::TASK, "deleting task " PTR, task);
+ DLOG(dom, rust_log::TASK, "deleting task " PTR, task);
delete task;
}
}