OpenSK icon indicating copy to clipboard operation
OpenSK copied to clipboard

#cfg in macros

Open kaczmarczyck opened this issue 5 years ago • 2 comments

As noted in #127 , we should support #cfg inside macro calls, i.e. cbor_map.

kaczmarczyck avatar Jul 08 '20 08:07 kaczmarczyck

See the register_structs! macro of Tock. It should boil down to matching $(#[$attr:meta])* before each item that can be #cfged.

gendx avatar Jul 09 '20 13:07 gendx

I'll mention this here since it is related: https://github.com/rust-lang/rust/issues/73663

It should be orthogonal though if we don't support #cfg in macros so far.

kaczmarczyck avatar Jul 09 '20 15:07 kaczmarczyck