vexide
vexide copied to clipboard
fix(macro): wrap original function instead of re-writing
Describe the changes this PR makes. Why should it be merged?
This PR updates the vexide-macro crate's codegen to wrap the original function rather than rewriting it. This fixes #74 and simplifies some of the logic for code generation. It also adds some related tests to the crate.
Additional Context
- I have tested these changes on a VEX V5 brain.
- See also: #74's example program