1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

array sizes

This commit is contained in:
Robin Appelman 2022-01-13 21:57:18 +01:00
commit 602c2d860a
3 changed files with 3 additions and 10709 deletions

1
codegen/.gitignore vendored
View file

@ -1 +1,2 @@
target
out.rs

File diff suppressed because it is too large Load diff

View file

@ -427,9 +427,9 @@ pub fn generate_game_events(demo: Demo) -> TokenStream {
}
pub fn get_sizes() -> fnv::FnvHashMap<&'static str, usize> {
vec![
[
#(#sizes,)*
].into_iter().collect()
].iter().copied().collect()
}
)
}