opencl_core/
macros.rs

1#[macro_export]
2macro_rules! panic_once {
3    ($fmt:expr, $($arg:tt)+) => {
4        if !std::thread::panicking() {
5            panic!($fmt, $($arg)+);
6        }
7    }
8}