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)
|
||||
end
|
||||
|
||||
rl.new = ffi.new
|
||||
|
||||
rl.__index = function (self, key)
|
||||
return C[key]
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user