jmckaskill / luaffi

Standalone FFI library for calling C functions from lua. Compatible with the luajit FFI interface.
469 stars 84 forks source link

type parameters #46

Open justincormack opened 12 years ago

justincormack commented 12 years ago

New luajit ffi feature...

http://www.freelists.org/post/luajit/ffi-type-of-pointer-to,4

jmckaskill commented 12 years ago

That was quick :P What use cases are you looking to use at first?

justincormack commented 12 years ago

I think I only need pointers to start with, possibly arrays. ie ffi.typeof("$*", ct) or ffi.typeof("$[$]", ct, n)

justincormack commented 11 years ago

(removed my uses for this for ljsyscall, so not a priority for me now).