[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [LuaJIT ffi] Misleading error message?
- From: Thomas Lauer <thomas.lauer@...>
- Date: Sat, 23 Jul 2011 14:29:55 +0100
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