From 42b74ccf1d8c2bb181be6900b068a3a011e106a9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 23 Jun 2004 12:57:29 -0300 Subject: [PATCH] libraries may want to use `lua_assert' too... --- llimits.h | 7 +------ luaconf.h | 5 ++++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/llimits.h b/llimits.h index 50a44651..4aae7fc5 100644 --- 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 index 93793e55..dcc96cd1 100644 --- 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 */ + /* }====================================================== */