Hacker News new | ask | show | jobs
by Keyframe 3957 days ago
Would be nice to see, in contrast, a C implementation.
1 comments

The task library enkiTS has a C interface, though this simply wraps the C++ implementation. Writing a C implementation from that interface would be pretty much the same, however the virtual function and inheritance would be replaced by a function pointer and plain struct.