macro are not const
macro are not const
Posted Oct 10, 2024 3:37 UTC (Thu) by NYKevin (subscriber, #129325)In reply to: macro are not const by neggles
Parent article: Improving bindgen for the kernel
Technically, macro_rules! is mostly equivalent to #define (with numerous minor semantic differences that are not particularly interesting or relevant here), but nobody wants to go around writing NAME!() everywhere when you could just use a const and call it NAME like a normal person.