summaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-24 12:56:56 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-11-24 12:56:56 -0200
commit075661ffde8cdd48dcb7e4e2033408cee4535edf (patch)
tree066db62900eba0ed7d1959d7705fe09e16337bca /ltests.h
parentdb5ac2fa0df1e0d6f7a4a1e5d6e0b5e4ac4456c0 (diff)
downloadlua-github-075661ffde8cdd48dcb7e4e2033408cee4535edf.tar.gz
new test for macro 'luai_numinvalidop'
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ltests.h b/ltests.h
index 5f0fba92..d5d798d7 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
/*
-** $Id: ltests.h,v 2.39 2014/07/24 19:33:29 roberto Exp roberto $
+** $Id: ltests.h,v 2.40 2014/10/01 11:54:56 roberto Exp roberto $
** Internal Header for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -104,5 +104,9 @@ void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize);
#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.1 && b == 1)
+
#endif