rt: Allow console logging to be turned off

This commit is contained in:
Brian Anderson
2012-01-13 13:19:26 -08:00
parent 7150643588
commit f5f36e8b49
3 changed files with 46 additions and 1 deletions

View File

@@ -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++