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_dom.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rt/rust_dom.h') diff --git a/src/rt/rust_dom.h b/src/rt/rust_dom.h index 8aa24192..be3ca2f9 100644 --- a/src/rt/rust_dom.h +++ b/src/rt/rust_dom.h @@ -88,6 +88,11 @@ struct rust_dom : public kernel_owned, rc_base rust_task *create_task(rust_task *spawner, const char *name); }; +inline rust_log & +rust_dom::get_log() { + return _log; +} + // // Local Variables: // mode: C++ -- cgit v1.2.3