Add rl.new as alias of ffi.new.
This commit is contained in:
parent
c59880f170
commit
9707ec75bc
|
@ -884,6 +884,8 @@ function rl.ref(obj)
|
||||||
return ffi.cast(ffi.typeof("$ *", obj), obj)
|
return ffi.cast(ffi.typeof("$ *", obj), obj)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
rl.new = ffi.new
|
||||||
|
|
||||||
rl.__index = function (self, key)
|
rl.__index = function (self, key)
|
||||||
return C[key]
|
return C[key]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue