rune/
print.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
//! Printing utilities.
use crate::core::object::Object;
use rune_macros::defun;

#[defun]
fn error_message_string(obj: Object) -> String {
    // TODO: implement
    format!("Error: {obj}")
}

defvar!(PRINT_LENGTH);
defvar!(PRINT_LEVEL);
defvar_bool!(PRINT_ESCAPE_NEWLINES, false);