Skip to content

Commit a510692

Browse files
committed
removed macro 'luai_numinvalidop' (main motivation removed, as folding
does not handle any division by zero by default)
1 parent fb6796b commit a510692

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

ltests.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: ltests.h,v 2.45 2014/12/09 17:17:40 roberto Exp roberto $
2+
** $Id: ltests.h,v 2.46 2014/12/19 13:33:06 roberto Exp roberto $
33
** Internal Header for Debugging of the Lua Implementation
44
** See Copyright Notice in lua.h
55
*/
@@ -109,10 +109,5 @@ LUA_API void *debug_realloc (void *ud, void *block,
109109
#undef LUAI_USER_ALIGNMENT_T
110110
#define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; }
111111

112-
113-
/* check macro 'luai_numinvalidop' */
114-
#undef luai_numinvalidop
115-
#define luai_numinvalidop(op,a,b) (op == LUA_OPADD && a == 1.5 && b == 1)
116-
117112
#endif
118113

luaconf.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: luaconf.h,v 1.235 2014/12/16 17:17:30 roberto Exp roberto $
2+
** $Id: luaconf.h,v 1.236 2014/12/19 13:31:12 roberto Exp roberto $
33
** Configuration file for Lua
44
** See Copyright Notice in lua.h
55
*/
@@ -507,14 +507,6 @@
507507
#endif
508508

509509

510-
/*
511-
** The following macro checks whether an operation is not safe to be
512-
** performed by the constant folder. It should result in zero only if
513-
** the operation is safe.
514-
*/
515-
#define luai_numinvalidop(op,a,b) 0
516-
517-
518510
/*
519511
@@ LUA_INTEGER is the integer type used by Lua.
520512
**

0 commit comments

Comments
 (0)