Skip to content

ffi: fix missing C function declarations when compiling

ffi didn't include c function declarations when compiling, which cause the compiler treat the ECL-wrapper-functions as the original c functions (implicit-function-conversion), and hence cause the program to crash.

The problem is best demonstrated by a demo: compile c.h and c.cpp into a shared library and load c.lisp to see the result.

c.cpp c.h c.lisp

Merge request reports

Loading