diff options
author | pixel <pixel> | 2007-06-17 15:13:46 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-06-17 15:13:46 +0000 |
commit | af928d0663646b8cfb1bd87f160b5725eecb7534 (patch) | |
tree | f782042222818bb5caf87dd65fb652d38ddf0d17 | |
parent | e049a4f28b69f8c2912cb7dcba8ac4901638653f (diff) |
Adding method "next".
-rw-r--r-- | include/BLua.h | 3 | ||||
-rw-r--r-- | 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 <stdlib.h> #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); } |