Add rl.new as alias of ffi.new.

This commit is contained in:
TSnake41 2020-05-08 01:45:31 +02:00
parent c59880f170
commit 9707ec75bc
1 changed files with 2 additions and 0 deletions

View File

@ -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