-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add: Support for parameters in switches #155
Conversation
It's rebased on top of #156 for easier testing |
Works for me in Iron Horse. |
0ecc64c
to
6816a40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed code-wise. I haven't yet tried to figure out whether the resulting NFO makes sense.
store_tmp = VarAction2StoreCallParam(target.register_map[self.feature][i]) | ||
self.parse_expr(reduce_varaction2_expr(param, self.feature)) | ||
self.var_list.append(nmlop.STO_TMP) | ||
self.var_list.append(store_tmp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be self.var_list += (nmlop.STO_TMP, store_tmp)
, and similarly below. Current way might be clearer, not sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me
New syntax, compatible with old one: