5 ms·
That was the original implementation (and still used for non-GNU C). On GCC and Clang though, labels-as-values allows a cleaner implementation: https://github.
by mrpippy 7y ago
That was the original implementation (and still used for non-GNU C).
On GCC and Clang though, labels-as-values allows a cleaner implementation: https://github.com/Akagi201/protothreads/blob/master/include/lc-addrlabels.h https://github.com/Akagi201/protothreads/blob/master/include...
- dividuum 7y agoWoo. I wrote the original implementation for that 14 years ago. I discovered local labels when we tried to write some code that used the had multiple yields in the same line. Due to how the switch based implementation worked, this wasn't possible, so I looked for other solutions.