diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-13 13:19:26 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-13 13:44:09 -0800 |
| commit | f5f36e8b49336c1105daee9fb45de12ae039f38e (patch) | |
| tree | 45b3c36841a28ca885964689553f3f8911074675 /src/rt/rust_builtin.cpp | |
| parent | 7150643588dac57db2292d98fc03ab11b2675758 (diff) | |
| download | rust-f5f36e8b49336c1105daee9fb45de12ae039f38e.tar.gz rust-f5f36e8b49336c1105daee9fb45de12ae039f38e.zip | |
rt: Allow console logging to be turned off
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 7bd1c76c187..4bf51da214b 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -567,6 +567,21 @@ rust_set_exit_status(intptr_t code) { task->kernel->set_exit_status((int)code); } +extern void log_console_on(); + +extern "C" CDECL void +rust_log_console_on() { + log_console_on(); +} + +extern void log_console_off(rust_env *env); + +extern "C" CDECL void +rust_log_console_off() { + rust_task *task = rust_scheduler::get_task(); + log_console_off(task->kernel->env); +} + // // Local Variables: // mode: C++ |
