crochet
crochet copied to clipboard
Add component macro and example
The component macro helps to wrap the function body inside Cx::begin_loc and Cx::end to avoid key collision.
The name_of_cx function is very ugly but is simplest among the alternative I have tried out.