Fix proto read and write

This commit is contained in:
topjohnwu
2023-09-06 20:45:59 -07:00
parent 35b3c8ba5c
commit 4fff2aa7d8
2 changed files with 115 additions and 104 deletions

View File

@@ -97,8 +97,8 @@ macro_rules! cstr {
#[macro_export]
macro_rules! raw_cstr {
($s:literal) => {{
cstr!($s).as_ptr()
($($str:tt)*) => {{
cstr!($($str)*).as_ptr()
}};
}