You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@emilio I moved the code for counter-reset out of the mako file, but the CounterReset struct has a cfg attribute #[cfg_attr(feature = "gecko", derive(MallocSizeOf))] and building the geckolib throws some mismatched type errors.
I noticed there is a gecko.mako.rs file as well which still uses the old struct generated by mako (counter-increment and counter-reset shared the SpecifiedValue / ComputedValue struct, which is why the struct can still be found there). Do I need to move the code in gecko.mako.rs as well and if so, where should I put it?
Activity
[-]Move -counter-rest outside of mako[/-][+]Move -counter-reset outside of mako[/+][-]Move -counter-reset outside of mako[/-][+]Move counter-reset outside of mako[/+]DonatJR commentedon Dec 8, 2017
@emilio I moved the code for counter-reset out of the mako file, but the CounterReset struct has a cfg attribute
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]and building the geckolib throws some mismatched type errors.I noticed there is a
gecko.mako.rsfile as well which still uses the old struct generated by mako (counter-increment and counter-reset shared theSpecifiedValue/ComputedValuestruct, which is why the struct can still be found there). Do I need to move the code ingecko.mako.rsas well and if so, where should I put it?emilio commentedon Dec 8, 2017
No, the code in
gecko.mako.rsshould stay. Mind opening a PR (maybe with "WIP" in the title) so I can take a look? Thanks!DonatJR commentedon Dec 8, 2017
Opened a WIP PR: #19529 :)
Auto merge of #19529 - DonatJR:counter-reset-out-of-mako, r=emilio