Re: C data reflection in LuaJIT

  • From: Peter Colberg <peter@xxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Wed, 8 Oct 2014 00:27:11 -0400

On Tue, Oct 07, 2014 at 04:02:42PM +0200, Mike Pall wrote:
> Ah, I forgot about the GCref. Ok, so it might make more sense to
> offer an API similar to jit.util.traceir(). I.e. split the struct
> up into multiple return values.

Please see the patch for a bounds-checked low-level API.

It would be tremendous if LuaJIT could include a high-level API in
form of a tiny Lua module that provides a minimal set of functions
to decode the "info" field.

Peter












Other related posts: