aboutsummaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-07-10 17:57:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-07-10 17:57:05 -0300
commitfcf99bf7889ab33d8be84504378c32865f4a60f3 (patch)
tree388203563f4b179e71eaf14a775e020038172f1e /lmathlib.c
parent98d76cdcae713851872fa9ae1e76fcc09298d824 (diff)
downloadlua-fcf99bf7889ab33d8be84504378c32865f4a60f3.tar.gz
lua-fcf99bf7889ab33d8be84504378c32865f4a60f3.tar.bz2
lua-fcf99bf7889ab33d8be84504378c32865f4a60f3.zip
'math.isfloat' replaced by 'debug.subtype'
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 629f7c36..a90133c8 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.89 2013/06/25 19:37:00 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.90 2013/07/03 17:23:19 roberto Exp roberto $
3** Standard mathematical library 3** Standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -251,13 +251,6 @@ static int math_randomseed (lua_State *L) {
251} 251}
252 252
253 253
254static int math_isfloat (lua_State *L) {
255 luaL_checkany(L, 1);
256 lua_pushboolean(L, (lua_type(L, 1) == LUA_TNUMBER && !lua_isinteger(L, 1)));
257 return 1;
258}
259
260
261static const luaL_Reg mathlib[] = { 254static const luaL_Reg mathlib[] = {
262 {"abs", math_abs}, 255 {"abs", math_abs},
263 {"acos", math_acos}, 256 {"acos", math_acos},
@@ -273,7 +266,6 @@ static const luaL_Reg mathlib[] = {
273 {"ifloor", math_ifloor}, 266 {"ifloor", math_ifloor},
274 {"fmod", math_fmod}, 267 {"fmod", math_fmod},
275 {"frexp", math_frexp}, 268 {"frexp", math_frexp},
276 {"isfloat", math_isfloat},
277 {"ldexp", math_ldexp}, 269 {"ldexp", math_ldexp},
278#if defined(LUA_COMPAT_LOG10) 270#if defined(LUA_COMPAT_LOG10)
279 {"log10", math_log10}, 271 {"log10", math_log10},