projects
/
profile
/
ivi
/
murphy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a81cc9f
)
lua-utils: add MRP_LUA_OVERRIDE_GETLENGTH macro
author
Janos Kovacs
<jankovac503@gmail.com>
Thu, 8 Nov 2012 23:22:13 +0000
(
01:22
+0200)
committer
Janos Kovacs
<jankovac503@gmail.com>
Thu, 8 Nov 2012 23:22:13 +0000
(
01:22
+0200)
src/core/lua-utils/object.h
patch
|
blob
|
history
diff --git
a/src/core/lua-utils/object.h
b/src/core/lua-utils/object.h
index
9c21568
..
b23ac4b
100644
(file)
--- a/
src/core/lua-utils/object.h
+++ b/
src/core/lua-utils/object.h
@@
-47,6
+47,7
@@
#define MRP_LUA_OVERRIDE_SETFIELD(_func) { "__newindex", _func } ,
#define MRP_LUA_OVERRIDE_CALL(_func) { "__call", _func } ,
#define MRP_LUA_OVERRIDE_STRINGIFY(_func) { "__tostring", _func } ,
+#define MRP_LUA_OVERRIDE_GETLENGTH(_func) { "__len", _func } ,
#define MRP_LUA_METHOD_LIST_TABLE(_name, ... ) \
static luaL_reg _name[] = { \