aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-12-26 12:44:44 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-12-26 12:44:44 -0200
commita51069202a87f485ee7eba62158aab29d4e4e489 (patch)
tree08fbd695d4c7bd0d38a95ca0cb5f81d2ec9cded3 /ltests.h
parentfb6796ba06e5cfc6040cddec90508a379a3abd50 (diff)
downloadlua-a51069202a87f485ee7eba62158aab29d4e4e489.tar.gz
lua-a51069202a87f485ee7eba62158aab29d4e4e489.tar.bz2
lua-a51069202a87f485ee7eba62158aab29d4e4e489.zip
removed macro 'luai_numinvalidop' (main motivation removed, as folding
does not handle any division by zero by default)
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/ltests.h b/ltests.h
index 166f1ce1..18ae9a01 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
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 $
3** Internal Header for Debugging of the Lua Implementation 3** Internal Header for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -109,10 +109,5 @@ LUA_API void *debug_realloc (void *ud, void *block,
109#undef LUAI_USER_ALIGNMENT_T 109#undef LUAI_USER_ALIGNMENT_T
110#define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; } 110#define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; }
111 111
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
117#endif 112#endif
118 113