1
0
Fork 0
forked from wry/wry

libinput: move bindings into workspace crate

This commit is contained in:
kossLAN 2026-05-29 11:32:34 -04:00
parent 4562a34890
commit f5bcfaf73c
No known key found for this signature in database
12 changed files with 442 additions and 316 deletions

View file

@ -232,25 +232,6 @@ macro_rules! linear_ids {
};
}
macro_rules! cenum {
($name:ident, $uc:ident; $($name2:ident = $val:expr,)*) => {
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct $name(pub i32);
impl $name {
pub fn raw(self) -> i32 {
self.0
}
}
pub const $uc: &[i32] = &[$($val,)*];
$(
pub const $name2: $name = $name($val);
)*
}
}
#[expect(unused_macros)]
macro_rules! bitor {
($name:ident) => {