1
0
Fork 0
forked from wry/wry

wp-color-management-v1: allocate description ids linearly

This commit is contained in:
Julian Orth 2025-04-22 16:13:49 +02:00
parent 401e8bb0be
commit c9b0e86bf5
6 changed files with 10 additions and 30 deletions

View file

@ -185,6 +185,7 @@ macro_rules! linear_ids {
linear_ids!($(#[$attr1])* $ids, $id, u32);
};
($(#[$attr1:meta])* $ids:ident, $id:ident, $ty:ty $(,)?) => {
#[derive(Debug)]
pub struct $ids {
next: crate::utils::numcell::NumCell<$ty>,
}