rusticl/api: remove cl_closure macro

Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25669>
This commit is contained in:
Karol Herbst
2023-07-09 14:30:33 +02:00
committed by Marge Bot
parent cda52a04e3
commit 503d084d01
@@ -13,17 +13,6 @@ use std::ffi::c_void;
use std::ffi::CStr;
use std::iter::Product;
#[macro_export]
macro_rules! cl_closure {
(|$obj:ident| $cb:ident($($arg:ident$(,)?)*)) => {
Box::new(
unsafe {
move|$obj| $cb.unwrap()($($arg,)*)
}
)
}
}
macro_rules! cl_callback {
($cb:ident($fn_alias:ident) {
$($p:ident : $ty:ty,)*