#cc #ternary #expression #macro #proc-macro #style

macro simple-ternary

A simple macro for C/C++ style ternary expressions in Rust

5 unstable releases

0.3.0 Jan 18, 2025
0.2.0 Jan 14, 2025
0.1.2 Jan 14, 2025
0.1.1 Jan 14, 2025
0.1.0 Jan 14, 2025

#422 in Procedural macros

MIT license

6KB
78 lines

simple-ternary

Rust implementation of C/C++ ternary expression (proc macro)

Dependencies

~180–600KB
~14K SLoC