lua-library: add MRP_LUA_OVERRIDE_STRINGIFY
authorJanos Kovacs <jankovac503@gmail.com>
Thu, 25 Oct 2012 00:03:55 +0000 (03:03 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Tue, 6 Nov 2012 09:19:12 +0000 (11:19 +0200)
src/core/lua-utils/object.h

index 045acef..59f3541 100644 (file)
@@ -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[] = {                \