lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 42b74ccf1d8c2bb181be6900b068a3a011e106a9
parent 0c49857c1ab08a5adfe1e21e5370e8aa132e4da1
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 23 Jun 2004 12:57:07 -0300

libraries may want to use `lua_assert' too...

Diffstat:
Mllimits.h | 7+------
Mluaconf.h | 5++++-
2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/llimits.h b/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.57 2003/12/01 16:33:30 roberto Exp roberto $ +** $Id: llimits.h,v 1.58 2004/04/30 20:13:38 roberto Exp roberto $ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -63,11 +63,6 @@ typedef LUSER_ALIGNMENT_T L_Umaxalign; typedef LUA_UACNUMBER l_uacNumber; -#ifndef lua_assert -#define lua_assert(c) /* empty */ -#endif - - #ifndef check_exp #define check_exp(c,e) (e) #endif diff --git a/luaconf.h b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.5 2004/06/02 13:24:43 roberto Exp roberto $ +** $Id: luaconf.h,v 1.6 2004/06/02 19:07:55 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -55,6 +55,9 @@ /* first index for arrays */ #define LUA_FIRSTINDEX 1 +/* assertions in Lua (mainly for internal debugging) */ +#define lua_assert(c) /* empty */ + /* }====================================================== */