higan-emu / libco

libco is a cooperative multithreading library written in C89.
Other
125 stars 25 forks source link

add cmake build script for libco #6

Closed lygstate closed 4 years ago

Screwtapello commented 4 years ago

I don't think we want the Windows fibers change - if an app specifically calls co_derive() rather than co_create(), it's because it explicitly wants to manage the stack itself - perhaps to snapshot and restore the stack, or maybe walk it for garbage-collection purposes. Secretly storing the stack elsewhere would just break things, so it's better for co_derive() to just return 0, and then the app can make an informed decision about what it wants to do.

lygstate commented 4 years ago

OK, redo the work that's only update the cmake.