[cffi-devel] ECL and foreign-symbol-pointer

I have a report that ECL (at least on win32) throws an error if foreign-symbol- pointer does not find the specified function. The docs state that NIL should be returned in this case. This makes use of lispbuilder-sdl problematic on ECL as I make extensive use of foreign-symbol-pointer to detect at runtime if functions in the SDL_gfx, SDL_image, and SDL_ttf libraries are available. Is this something that needs to be fixed in CFFI or ECL? Thanks, -Luke

Hello Luke, On Tue, Jan 4, 2011 at 5:55 AM, Luke Crook <luke@balooga.com> wrote:
I have a report that ECL (at least on win32) throws an error if foreign-symbol- pointer does not find the specified function. The docs state that NIL should be returned in this case. [...] Is this something that needs to be fixed in CFFI or ECL?
If ECL's interface is defined to throw an error in this situation, then cffi-ecl needs to be fixed. Can you confirm whether that is the case? -- Luís Oliveira http://r42.eu/~luis/

On Thu, Jan 6, 2011 at 11:01 AM, Luís Oliveira <luismbo@gmail.com> wrote:
If ECL's interface is defined to throw an error in this situation, then cffi-ecl needs to be fixed. Can you confirm whether that is the case?
It is the case. ECL signals an error when the symbol is not found. Juanjo -- Instituto de Física Fundamental, CSIC c/ Serrano, 113b, Madrid 28006 (Spain) http://juanjose.garciaripoll.googlepages.com
participants (3)
-
Juan Jose Garcia-Ripoll
-
Luke Crook
-
Luís Oliveira