Re: `invalid C type' problem

  • From: Mike Pall <mike-1309@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 10 Sep 2013 16:34:22 +0200

Konstantin Olkhovskiy wrote:
> I would say that luajit ought to ignore this declaration as it
> already does with static inline functions.

Well, since a static variable declaration should never be in a
regular header file, nor should such a declaration be passed to
ffi.cdef().

OTOH inline functions are quite prevalent in header files, so
ignoring them seems to be the better choice.

--Mike

Other related posts: