jmckaskill / luaffi

Standalone FFI library for calling C functions from lua. Compatible with the luajit FFI interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

luaffi does not parse `int (*)[3]`

petercolberg opened this issue · comments

luaffi throws an error "unexpected token in function" with the following declaration:

local ffi = require("ffi")
ffi.cdef[[
int MPI_Group_range_excl(int (*)[3]);
]]

The above runs fine with LuaJIT.

The above error is reproducible with Lua 5.2 and lua-ffi abc638c on Linux x86_64.