COMTAY coroutine manager is free software to implement coroutines for Delphi, Free Pascal and C++. It is applicable to both procedural and class-based programming. Exceptions and Co. work as well.
COMTAY 5.0.2 has been released.
Download COMTAY at opensimply.org/comtay
See example for Delphi and Free Pascal
See example for C++