From af928d0663646b8cfb1bd87f160b5725eecb7534 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 17 Jun 2007 15:13:46 +0000 Subject: Adding method "next". --- include/BLua.h | 3 ++- lib/BLua.cc | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/BLua.h b/include/BLua.h index f745f55..9958cba 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.38 2007-05-31 13:26:52 pixel Exp $ */ +/* $Id: BLua.h,v 1.39 2007-06-17 15:13:46 pixel Exp $ */ #ifndef __BLUA_H__ #define __BLUA_H__ @@ -72,6 +72,7 @@ class Lua : public Base { void push(void *); void push(lua_CFunction, int = 0); void pop(int = 1); + int next(int = -2); void copy(int = -1); void remove(int = 1); void insert(int = 1); diff --git a/lib/BLua.cc b/lib/BLua.cc index ab54be3..517955b 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.49 2007-05-31 13:26:52 pixel Exp $ */ +/* $Id: BLua.cc,v 1.50 2007-06-17 15:13:46 pixel Exp $ */ #include #include "BLua.h" @@ -615,6 +615,10 @@ void Lua::pop(int n) { lua_pop(L, n); } +int Lua::next(int t) { + return lua_next(L, t); +} + void Lua::copy(int n) { lua_pushvalue(L, n); } -- cgit v1.2.3