diff options
Diffstat (limited to 'lib/LuaHandle.cc')
-rw-r--r-- | lib/LuaHandle.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/LuaHandle.cc b/lib/LuaHandle.cc index 6a7fc33..05f2ced 100644 --- a/lib/LuaHandle.cc +++ b/lib/LuaHandle.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: LuaHandle.cc,v 1.18 2006-02-02 14:09:48 pixel Exp $ */ +/* $Id: LuaHandle.cc,v 1.19 2007-05-30 06:28:53 pixel Exp $ */ #include "LuaHandle.h" @@ -615,10 +615,16 @@ int sLuaHandle::exists(lua_State * __L) { void LuaInput::pushmembers(Lua * L) { LuaHandle::pushmembers(L); + L->push("__objname"); + L->push("Handle:Input"); + L->settable(-3, true); } void LuaOutput::pushmembers(Lua * L) { LuaHandle::pushmembers(L); + L->push("__objname"); + L->push("Handle:Output"); + L->settable(-3, true); } void LuaBuffer::pushmembers(Lua * L) { @@ -627,10 +633,13 @@ void LuaBuffer::pushmembers(Lua * L) { pushmeta(L, "__newindex", sLuaHandle::bnewindex); pushit(L, "wtell", sLuaHandle::btell); pushit(L, "wseek", sLuaHandle::bseek); + L->push("__objname"); + L->push("Handle:Buffer"); + L->settable(-3, true); } void LuaHandle::pushmembers(Lua * L) { - pushme(L, h); + pushme(L, h, true, "Handle"); pushit(L, "read", &sLuaHandle::read); pushit(L, "write", &sLuaHandle::write); |