elua: fix object system on lua 5.2 onwards
authorDaniel Kolesa <d.kolesa@samsung.com>
Sun, 31 May 2020 01:39:49 +0000 (03:39 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 31 May 2020 21:37:04 +0000 (06:37 +0900)
commit92ace96f0ea4880750cf004a9dcad615fb8bf10c
treefd13bcc7d35723abf69963416fe8ec7b52cee3da
parenta19b87b2b40911490d218638804ccc921d45d2a9
elua: fix object system on lua 5.2 onwards

This is a quick hacky fix, but it enables elua to work well with
lua 5.2+. Notably Eolian bindings work now.

Later this will be rewritten to use __gc directly on object
instances, with a fallback for newproxy for 5.1/luajit.
src/scripts/elua/core/util.lua