From a51069202a87f485ee7eba62158aab29d4e4e489 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Dec 2014 12:44:44 -0200 Subject: removed macro 'luai_numinvalidop' (main motivation removed, as folding does not handle any division by zero by default) --- ltests.h | 7 +------ luaconf.h | 10 +--------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/ltests.h b/ltests.h index 166f1ce1..18ae9a01 100644 --- a/ltests.h +++ b/ltests.h @@ -1,5 +1,5 @@ /* -** $Id: ltests.h,v 2.45 2014/12/09 17:17:40 roberto Exp roberto $ +** $Id: ltests.h,v 2.46 2014/12/19 13:33:06 roberto Exp roberto $ ** Internal Header for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -109,10 +109,5 @@ LUA_API void *debug_realloc (void *ud, void *block, #undef LUAI_USER_ALIGNMENT_T #define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; } - -/* check macro 'luai_numinvalidop' */ -#undef luai_numinvalidop -#define luai_numinvalidop(op,a,b) (op == LUA_OPADD && a == 1.5 && b == 1) - #endif diff --git a/luaconf.h b/luaconf.h index 082af665..4b0ca0a6 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.235 2014/12/16 17:17:30 roberto Exp roberto $ +** $Id: luaconf.h,v 1.236 2014/12/19 13:31:12 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -507,14 +507,6 @@ #endif -/* -** The following macro checks whether an operation is not safe to be -** performed by the constant folder. It should result in zero only if -** the operation is safe. -*/ -#define luai_numinvalidop(op,a,b) 0 - - /* @@ LUA_INTEGER is the integer type used by Lua. ** -- cgit v1.2.3-55-g6feb