mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-13 16:22:43 +10:00
9 lines
189 B
Rust
9 lines
189 B
Rust
#[macro_export]
|
|
macro_rules! lock {
|
|
($mutex:expr) => {
|
|
$mutex
|
|
.lock()
|
|
.unwrap_or_else(|_| panic!("Failed to lock onto {}", stringify!($mutex)))
|
|
};
|
|
}
|