lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 26/01/11 13:05, Mike Pall wrote:
[...]
> Neither should be a problem for the LuaJIT FFI. The import stubs
> are not needed and __stdcall is automatically detected. So just
> omit any calling convention in the declaration and the FFI will
> figure it out for you.

Gosh --- how?

(I once wasted several days because my OpenGL headers said stdcall when
the library I was linking against had been compiled with ccall --- Bada,
curses curses. A reliable way of making this problem going away would be
great. [I didn't get link errors because this is all via dynamically
generated code.])

-- 
ââââ ïïïïïïïïïïïïïï âââââ http://www.cowlark.com âââââ
â
â lifeâ{ â1 ââ.^3 4=+/,Â1 0 1â.âÂ1 0 1â.âââ }
â --- Conway's Game Of Life, in one line of APL

Attachment: signature.asc
Description: OpenPGP digital signature