jmckaskill/luaffi — Issue #4: ffi.cdef doesn't understand/skip __attribute__
Author: daurnimator
Created: 2011-10-28 23:25:48+00:00
State: open

Unlike the luajit ffi; ffi.cdef doesn't understand or skip __attribute__

eg:
ffi = require"ffi"
ffi.cdef [[
typedef int ALenum;
__attribute__((dllimport)) void __attribute__((__cdecl__)) alEnable( ALenum capability );
]]

error: unknown type __attribute__ on line 2