3 ms·
The trick is on the PT_ macros really, they hide the switch, case and gotos. I'll post the header later, but you probably can find it by googling for protothrea
by buserror 10y ago
The trick is on the PT_ macros really, they hide the switch, case and gotos. I'll post the header later, but you probably can find it by googling for protothreads
- pcmonk 10y agoAh, I see it now. Thanks!
- josephg 10y agoWhoa, PT is fantastic. A full explanation of how it works is here: http://dunkels.com/adam/pt/expansion.html http://dunkels.com/adam/pt/expansion.html Its actually a really simple and beautiful. I worry that we give up a lot of this sort of flow expressiveness in more modern languages like Rust.