1#[macro_export]
51macro_rules! quo {
52 ($( mut $var:ident ), + $(,)?) => {{
53 #[cfg(debug_assertions)]
54 $(
55 let quo_package_name = option_env!("CARGO_PKG_NAME").unwrap_or("Rust project"); #[cfg(target_family = "wasm")]
58 {
59 let quo_file_path = concat!(env!("CARGO_MANIFEST_DIR"), "/", file!());
60 $crate::__private_quo(&$var, stringify!($var), line!(), &quo_file_path, true, false, quo_package_name);
61 }
62
63 #[cfg(not(target_family = "wasm"))]
64 {
65 let quo_path_buf = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join(file!());
66 let quo_file_path = quo_path_buf.to_str().unwrap_or(file!());
67 $crate::__private_quo(&$var, stringify!($var), line!(), quo_file_path, true, false, quo_package_name);
68 }
69 )*
70 }};
71
72 ($( $var:ident ), + $(,)?) => {
73 #[cfg(debug_assertions)]
74 $(
75 {
76 let __quo_package_name = option_env!("CARGO_PKG_NAME").unwrap_or("Rust project"); #[cfg(target_family = "wasm")]
79 {
80 let quo_file_path = concat!(env!("CARGO_MANIFEST_DIR"), "/", file!());
81 $crate::__private_quo(&$var, stringify!($var), line!(), &quo_file_path.to_owned(), false, false, __quo_package_name);
82 }
83
84 #[cfg(not(target_family = "wasm"))]
85 {
86 let quo_path_buf = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join(file!());
87 let quo_file_path = quo_path_buf.to_str().unwrap_or(file!());
88 $crate::__private_quo(&$var, stringify!($var), line!(), quo_file_path, false, false, __quo_package_name);
89 }
90 }
91 )*
92 };
93
94 ($( $var:expr ), + $(,)?) => {
95 #[cfg(debug_assertions)]
96 $(
97 {
98 let __quo_package_name = option_env!("CARGO_PKG_NAME").unwrap_or("Rust project"); #[cfg(target_family = "wasm")]
101 {
102 let quo_file_path = concat!(env!("CARGO_MANIFEST_DIR"), "/", file!());
103 $crate::__private_quo(&$var, stringify!($var), line!(), &quo_file_path.to_owned(), false, true, __quo_package_name);
104 }
105
106 #[cfg(not(target_family = "wasm"))]
107 {
108 let quo_path_buf = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join(file!());
109 let quo_file_path = quo_path_buf.to_str().unwrap_or(file!());
110 $crate::__private_quo(&$var, stringify!($var), line!(), quo_file_path, false, true, __quo_package_name);
111 }
112 }
113 )*
114 };
115}