lua-users home
lua-l archive

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


During my experiments with ffi I've run into this.

The following code, run under Windows, produces an error message for
line 4 which IMHO is misleading at best but more probably spurious?

ffi=require('ffi')
ffi.cdef('void DebugBreak(void);')  -- Any function will do
if ffi.C.DebugBreak then print(ffi.C.DebugBreak) end  -- OK
if ffi.C.DebugBreak~=nil then print(ffi.C.DebugBreak) end

luajit.exe: f:\testffi.lua:4: attempt to compare 'void ()' with 'void *'

-- 
cheers  thomasl