sol-macros

GPL-3.0 License

Stars
30

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.