Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Reduce boilerplate for creating BinOps #70
planetmaker left a comment
Did you run checks on a few NewGRFs that results remain the same with an without patch?
Rebased. I decided the changes I wanted to make were a mistake, so this is pretty much the same as before. I've tested with more grfs that this doesn't change the output.
This allows, for example, `nmlop.AND(foo, 0x42)` instead of `BinOp(nmlop.AND, foo, ConstantNumeric(0x42, foo.pos), foo.pos)`
I'm confident the circular import isn't an actual problem -- nothing from