sol-macros
sol-macros copied to clipboard
sol-macros
How to use C macros and the C preprocessor to write Solidity macros and generics.
Build
Instead of forge build, run ./build.sh. This runs the C preprocessor on the
Solidity template file, formats it, and runs forge build.
Tests
Run forge test.
Dependencies
Foundry and GCC.