summaryrefslogtreecommitdiff
path: root/src/bindings/luajit/eo.lua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-06 15:41:29 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-10 15:48:53 +0100
commitf395e861fb678dce82260800a3dd987b33569ad0 (patch)
tree31f5d524855e7c0c98adc2fb6f47457b3f1dd441 /src/bindings/luajit/eo.lua
parentff519ccc4a9b26f4b1cb05e1382bb2c2e07e278c (diff)
elua: make it possible to get class lua body from address
Diffstat (limited to 'src/bindings/luajit/eo.lua')
-rw-r--r--src/bindings/luajit/eo.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bindings/luajit/eo.lua b/src/bindings/luajit/eo.lua
index c5216e4346..8f44c3106f 100644
--- a/src/bindings/luajit/eo.lua
+++ b/src/bindings/luajit/eo.lua
@@ -68,8 +68,11 @@ M.class_get = function(name)
68 return classes[name] 68 return classes[name]
69end 69end
70 70
71M.class_register = function(name, val) 71M.class_register = function(name, val, addr)
72 classes[name] = val 72 classes[name] = val
73 if addr then
74 classes[tonumber(ffi.cast("intptr_t", addr))] = val
75 end
73end 76end
74 77
75M.__ctor_common = function(self, klass, parent, ctor, loff, ...) 78M.__ctor_common = function(self, klass, parent, ctor, loff, ...)