summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-23 13:04:07 +0000
committerpixel <pixel>2007-05-23 13:04:07 +0000
commit897372d73679dfc077e9d808faeaf2b73c01a95d (patch)
tree8c2d2c513c8e5dd722a9b4d34225b12387b2e48f /lib
parent948a599db09a14e23fdcd83f7135b46c94d4a9f6 (diff)
Adding "remove", "insert" and "replace" methods.
Diffstat (limited to 'lib')
-rw-r--r--lib/BLua.cc14
1 files changed, 13 insertions, 1 deletions
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);
}