diff options
-rw-r--r-- | include/BLua.h | 5 | ||||
-rw-r--r-- | lib/BLua.cc | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/include/BLua.h b/include/BLua.h index a39ddbc..d9a3fa7 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.h,v 1.32 2007-05-22 08:46:59 pixel Exp $ */ +/* $Id: BLua.h,v 1.33 2007-05-23 13:04:07 pixel Exp $ */ #ifndef __BLUA_H__ #define __BLUA_H__ @@ -68,6 +68,9 @@ class Lua : public Base { void push(lua_CFunction, int = 0); void pop(int = 1); void copy(int = -1); + void remove(int = 1); + void insert(int = 1); + void replace(int = 1); void newtable(); void * newuser(size_t); void settable(int = -3, bool raw = false); 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 <stdlib.h> #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); } |