Module: Mesa Branch: main Commit: 503d084d01b595226004f98d8ced82a1d8890e8a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=503d084d01b595226004f98d8ced82a1d8890e8a
Author: Karol Herbst <[email protected]> Date: Sun Jul 9 14:30:33 2023 +0200 rusticl/api: remove cl_closure macro Reviewed-by: @LingMan Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25669> --- src/gallium/frontends/rusticl/api/types.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/gallium/frontends/rusticl/api/types.rs b/src/gallium/frontends/rusticl/api/types.rs index 3b7e0f08945..ec1c7ed01f6 100644 --- a/src/gallium/frontends/rusticl/api/types.rs +++ b/src/gallium/frontends/rusticl/api/types.rs @@ -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,)*
