Skip to content

Commit

Permalink
Better macro ergonomics
Browse files Browse the repository at this point in the history
  • Loading branch information
nickray committed Sep 22, 2021
1 parent 3fda2fb commit e461162
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ macro_rules! ram_storage { (
erase_value=0xff,
read_size=1,
write_size=1,
cache_size_ty=consts::U32,
cache_size_ty=$crate::consts::U32,
block_size=128,
block_count=$bytes/128,
lookaheadwords_size_ty=consts::U1,
filename_max_plus_one_ty=consts::U256,
path_max_plus_one_ty=consts::U256,
lookaheadwords_size_ty=$crate::consts::U1,
filename_max_plus_one_ty=$crate::consts::U256,
path_max_plus_one_ty=$crate::consts::U256,
result=LfsResult,
);
};
Expand All @@ -107,12 +107,12 @@ macro_rules! ram_storage { (
erase_value=0xff,
read_size=32,
write_size=32,
cache_size_ty=consts::U32,
cache_size_ty=$crate::consts::U32,
block_size=128,
block_count=8,
lookaheadwords_size_ty=consts::U1,
filename_max_plus_one_ty=consts::U256,
path_max_plus_one_ty=consts::U256,
lookaheadwords_size_ty=$crate::consts::U1,
filename_max_plus_one_ty=$crate::consts::U256,
path_max_plus_one_ty=$crate::consts::U256,
result=Result,
);
};
Expand All @@ -124,12 +124,12 @@ macro_rules! ram_storage { (
erase_value=0xff,
read_size=32,
write_size=32,
cache_size_ty=consts::U32,
cache_size_ty=$crate::consts::U32,
block_size=256,
block_count=512,
lookaheadwords_size_ty=consts::U4,
filename_max_plus_one_ty=consts::U256,
path_max_plus_one_ty=consts::U256,
lookaheadwords_size_ty=$crate::consts::U4,
filename_max_plus_one_ty=$crate::consts::U256,
path_max_plus_one_ty=$crate::consts::U256,
result=Result,
);
};
Expand Down Expand Up @@ -218,12 +218,12 @@ macro_rules! const_ram_storage { (
erase_value=0xff,
read_size=16,
write_size=512,
cache_size_ty=consts::U512,
cache_size_ty=$crate::consts::U512,
block_size=512,
block_count=$bytes/512,
lookaheadwords_size_ty=consts::U1,
filename_max_plus_one_ty=consts::U256,
path_max_plus_one_ty=consts::U256,
lookaheadwords_size_ty=$crate::consts::U1,
filename_max_plus_one_ty=$crate::consts::U256,
path_max_plus_one_ty=$crate::consts::U256,
result=LfsResult,
);
};
Expand Down

0 comments on commit e461162

Please sign in to comment.