aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-08 15:51:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-07-08 15:51:55 -0300
commit6f5bd5072dff07679c390eecfeaa9d20cc45a9ef (patch)
treee7025f2595fe225b165b6a9daae53c86013139ca /ltests.h
parent56ec4322817b0e9aef6084c278dcf24fda7bed1c (diff)
downloadlua-6f5bd5072dff07679c390eecfeaa9d20cc45a9ef.tar.gz
lua-6f5bd5072dff07679c390eecfeaa9d20cc45a9ef.tar.bz2
lua-6f5bd5072dff07679c390eecfeaa9d20cc45a9ef.zip
Macro LUAI_ASSERT eases turning assertions on
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/ltests.h b/ltests.h
index 02331ebc..2b4498cc 100644
--- a/ltests.h
+++ b/ltests.h
@@ -20,9 +20,7 @@
20 20
21 21
22/* turn on assertions */ 22/* turn on assertions */
23#undef NDEBUG 23#define LUAI_ASSERT
24#include <assert.h>
25#define lua_assert(c) assert(c)
26 24
27 25
28 26