macro_rules! r_string { ($lit:expr) => { ... }; ($ruby:expr, $lit:expr) => { ... }; }
Create a RString from a Rust str literal.
RString
Panics if called from a non-Ruby thread.
use magnus::{r_string, rb_assert}; let s = r_string!("Hello, world!"); rb_assert!(r#"s == "Hello, world!""#, s);