summaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 60e3a1ee..f0e219b4 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.172 2013/04/12 19:07:09 roberto Exp roberto $ 2** $Id: lapi.c,v 2.173 2013/04/15 15:43:34 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -264,6 +264,12 @@ LUA_API int lua_iscfunction (lua_State *L, int idx) {
264} 264}
265 265
266 266
267LUA_API int lua_isinteger (lua_State *L, int idx) {
268 StkId o = index2addr(L, idx);
269 return ttisinteger(o);
270}
271
272
267LUA_API int lua_isnumber (lua_State *L, int idx) { 273LUA_API int lua_isnumber (lua_State *L, int idx) {
268 TValue n; 274 TValue n;
269 const TValue *o = index2addr(L, idx); 275 const TValue *o = index2addr(L, idx);