Closed ogoffart closed 6 years ago
I find this quite inconvenient to always add a level of nesting because of the unsafe
block, so writing cpp!(unsafe [] -> u32 as "int" { return 42; })
with the unsafe keyword within the macro helps to avoid mistakes with the level of } and ) and the amount of nesting.
@mystor what do you think?
Having to put an unsafe keyword around the cpp! closure mean also adding a level of {} nesting which is annoying for the readability. So this allow to put the unsafe keyword directly within the macro without forcing another level of nesting.