Re: example of C types as a substitute for standard Lua types, without using any C function

  • From: "Robert G. Jakabosky" <bobby@xxxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 6 Aug 2012 17:39:48 -0700

On Monday 06, razorcam razorcam wrote:
> local mt ={}
> local int=ffi.metatype("int_c",mt)

local int = ffi.typeof("int_c")

since the metatable is empty, just use ffi.typeof()

Examples like those would be good to add to the Wiki:
http://wiki.luajit.org/

-- 
Robert G. Jakabosky

Other related posts: