Macro atomic_dbg::eprintln

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

Prints to the standard error, with a newline.

Similar to [std::eprintln], except it:

  • Writes atomically, up to the greatest length supported on the platform.
  • Doesn’t use locks (in userspace).
  • Preserve libc’s errno and Windows’ last-error code value.

This allows it to be used to debug allocators, multi-threaded code, synchronization routines, startup code, and more.