telugu-boy / seedimg

GNU Lesser General Public License v3.0
14 stars 0 forks source link

C API for FFI #17

Open tripulse opened 4 years ago

tripulse commented 4 years ago

There's no compiler-agnostic mangling scheme defined for C++, thus binding it an another C FFI capable language is impossible without supporting a compiler specific mangling scheme.

Also just not mangling, since this is nowhere a C API and uses smart-pointers to avoid memory leaks. No ABI does support "smart-pointers" or anything like such, so it becomes very impossible.

This feature is complicated to implement, I just put it here to think it of later.

tripulse commented 4 years ago

Hm, it seems there are couple of ways around this.