Re: ffi.cdef()

  • From: Kaj Eijlers <bizziboi@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 20 Jul 2012 02:28:04 -0700

>>I'm not 100% sure I understand your question, but as you can see from the
example above the cdef call loads the symbol into the ffi.C namespace
regardless of the invoking function's scope/environment

You won't be polluting the global namespace with functions you don't
actually call, which might be a lot if you pull in a truckload of bindings?


Other related posts: