removed macro 'luai_checknum' (as NaN trick is not doable now)
This commit is contained in:
4
lapi.c
4
lapi.c
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lapi.c,v 2.212 2014/05/14 18:32:30 roberto Exp roberto $
|
** $Id: lapi.c,v 2.213 2014/05/15 15:22:45 roberto Exp roberto $
|
||||||
** Lua API
|
** Lua API
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -499,8 +499,6 @@ LUA_API void lua_pushnil (lua_State *L) {
|
|||||||
LUA_API void lua_pushnumber (lua_State *L, lua_Number n) {
|
LUA_API void lua_pushnumber (lua_State *L, lua_Number n) {
|
||||||
lua_lock(L);
|
lua_lock(L);
|
||||||
setfltvalue(L->top, n);
|
setfltvalue(L->top, n);
|
||||||
luai_checknum(L, L->top,
|
|
||||||
luaG_runerror(L, "C API - attempt to push a signaling NaN"));
|
|
||||||
api_incr_top(L);
|
api_incr_top(L);
|
||||||
lua_unlock(L);
|
lua_unlock(L);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: lobject.h,v 2.89 2014/05/01 18:18:06 roberto Exp roberto $
|
** $Id: lobject.h,v 2.90 2014/05/07 11:12:51 roberto Exp roberto $
|
||||||
** Type definitions for Lua objects
|
** Type definitions for Lua objects
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -269,10 +269,6 @@ typedef struct lua_TValue TValue;
|
|||||||
#define setsvalue2n setsvalue
|
#define setsvalue2n setsvalue
|
||||||
|
|
||||||
|
|
||||||
/* check whether a number is valid (useful only for NaN trick) */
|
|
||||||
#define luai_checknum(L,o,c) { /* empty */ }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user