Macro roblox::warn[][src]

macro_rules! warn {
    () => { ... };
    ($($arg : tt) *) => { ... };
}
Expand description

Equivalent to void warn(Tuple params) in Luau.

Behaves identically to Lua’s print function or Rust’s println! macro, except the output is styled as a warning, with yellow text and a timestamp.

This function accepts any number of arguments, and will attempt to convert them into strings which will then be joined together with spaces between them.

Examples

warn!(); // Warns with just a newline.
warn!("hello there!");
warn!("format {} arguments", "some");