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:
e9dda7d
)
lua-library: add MRP_LUA_OVERRIDE_STRINGIFY
author
Janos Kovacs
<jankovac503@gmail.com>
Thu, 25 Oct 2012 00:03:55 +0000
(
03:03
+0300)
committer
Krisztian Litkey
<krisztian.litkey@intel.com>
Tue, 6 Nov 2012 09:19:12 +0000
(11:19 +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
045acef
..
59f3541
100644
(file)
--- a/
src/core/lua-utils/object.h
+++ b/
src/core/lua-utils/object.h
@@
-46,6
+46,7
@@
#define MRP_LUA_OVERRIDE_GETFIELD(_func) { "__index", _func } ,
#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_METHOD_LIST_TABLE(_name, ... ) \
static luaL_reg _name[] = { \