LuaJIT FFI cannot compare types?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: LuaJIT FFI cannot compare types?
- From: Adam Strzelecki <ono@...>
- Date: 2012年1月25日 12:03:24 +0100
Why it is not possible to compare FFI types? I can compare any other objects but not types created via ffi.typeof
/usr/local/bin/luajit: /private/tmp/test.lua:3: attempt to compare 'enum 21' with 'enum 21'
local ffi = require 'ffi'
local charp = ffi.typeof('char *')
if charp == charp then
print 'equal!'
end
Cheers,
--
Adam Strzelecki