cairo-book / cairo-book

The Cairo Programming Language Book, a comprehensive documentation of the Cairo 1 programming language.
https://book.cairo-lang.org/
MIT License
222 stars 214 forks source link

feat: macros #264

Closed enitrat closed 1 year ago

enitrat commented 1 year ago

Create a section under "Advanced Features" that explains how to use available macrosconsteval_int!, array!, and how they work under the hood.

references: https://github.com/starkware-libs/cairo/commit/35953ba63e05c42c547960749a78255f4832cffe https://github.com/starkware-libs/cairo/blob/main/crates/cairo-lang-plugins/src/plugins/inline_macros https://doc.rust-lang.org/book/ch19-06-macros.html

est. 1 hour

0xEniotna commented 1 year ago

Can I take this one ser ? 👉👈