aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-27 15:12:00 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-27 15:12:00 -0200
commit0fd64669579f33b03dcda6fac4be908b4cfd7e15 (patch)
tree0d5221b01266c46731ace42ea1db72460e3e28bd /luaconf.h
parent6a516878e93fb46795aac95087aaf34b17cc4930 (diff)
downloadlua-0fd64669579f33b03dcda6fac4be908b4cfd7e15.tar.gz
lua-0fd64669579f33b03dcda6fac4be908b4cfd7e15.tar.bz2
lua-0fd64669579f33b03dcda6fac4be908b4cfd7e15.zip
lua_assert is an internal matter, not to be configured
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/luaconf.h b/luaconf.h
index a0504e0f..d4d93974 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.75 2005/11/25 13:29:11 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.76 2005/12/15 18:53:34 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -183,13 +183,6 @@
183 183
184 184
185/* 185/*
186@@ lua_assert describes the internal assertions in Lua.
187** CHANGE that only if you need to debug Lua.
188*/
189#define lua_assert(c) ((void)0)
190
191
192/*
193@@ LUA_QL describes how error messages quote program elements. 186@@ LUA_QL describes how error messages quote program elements.
194** CHANGE it if you want a different appearance. 187** CHANGE it if you want a different appearance.
195*/ 188*/
@@ -373,8 +366,7 @@
373#include <assert.h> 366#include <assert.h>
374#define luai_apicheck(L,o) { (void)L; assert(o); } 367#define luai_apicheck(L,o) { (void)L; assert(o); }
375#else 368#else
376/* (By default lua_assert is empty, so luai_apicheck is also empty.) */ 369#define luai_apicheck(L,o) { (void)L; }
377#define luai_apicheck(L,o) { (void)L; lua_assert(o); }
378#endif 370#endif
379 371
380 372