-
-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
Would be nice to be able to specify C-string literals directly, e.g.
const C_STRING: &CStr = match CStr::from_bytes_with_nul(
concat!(
indoc!(
r#"
My multi-line
string.
"#
),
"\0",
)
.as_bytes(),
) {
Ok(cstr) => cstr,
Err(_) => panic!("Invalid C-string."),
};vs.
const C_STRING: &CStr = indoc!(
cr#"
My multi-line
string.
"#
);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels