From 9707ec75bc7d857706a0c01e4b32bd2e12d1048c Mon Sep 17 00:00:00 2001 From: TSnake41 Date: Fri, 8 May 2020 01:45:31 +0200 Subject: [PATCH] Add rl.new as alias of ffi.new. --- src/raylib.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/raylib.lua b/src/raylib.lua index 8dfbddc..28a037c 100644 --- a/src/raylib.lua +++ b/src/raylib.lua @@ -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