Re: more gc gotchas

  • From: Mike Pall <mike-1205@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 28 May 2012 20:39:44 +0200

Cosmin Apreutesei wrote:
> Eg. say I write the above as simply:
> ffi.C.some_api(ffi.cast('mystruct*','mystruct', initial_data))
> Does Lua guarantee to keep mystruct alive until some_api() returns or


> is just the argument (i.e. the mystruct pointer) guaranteed to stay?



Other related posts: