From 897372d73679dfc077e9d808faeaf2b73c01a95d Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 23 May 2007 13:04:07 +0000 Subject: Adding "remove", "insert" and "replace" methods. --- lib/BLua.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/BLua.cc b/lib/BLua.cc index 799d54e..b7df7eb 100644 --- a/lib/BLua.cc +++ b/lib/BLua.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.cc,v 1.41 2007-05-22 08:46:59 pixel Exp $ */ +/* $Id: BLua.cc,v 1.42 2007-05-23 13:04:07 pixel Exp $ */ #include #include "BLua.h" @@ -574,6 +574,18 @@ void Lua::copy(int n) { lua_pushvalue(L, n); } +void Lua::remove(int n) { + lua_remove(L, n); +} + +void Lua::insert(int n) { + lua_insert(L, n); +} + +void Lua::replace(int n) { + lua_replace(L, n); +} + void Lua::newtable() { lua_newtable(L); } -- cgit v1.2.3