tidwall / neco

Concurrency library for C (coroutines)
MIT License
1.1k stars 79 forks source link

[proposal] Export C functions for use in C++ #15

Open sigidagi opened 3 months ago

sigidagi commented 3 months ago

To call C functions from C++ some small changes can be added to neco.h interface. See forked version of neco.h .

I am writing a small C++ wrapper for neco library: necopp . So, in that case it could be useful to link dependencies to direct source instead of forked version of neco library. (Utilizing cmake as a package manager).

tidwall commented 2 months ago

I'd be willing to add C++ support.