lua_assert is an internal matter, not to be configured

This commit is contained in:
Roberto Ierusalimschy
2005-12-27 15:12:00 -02:00
parent 6a516878e9
commit 0fd6466957
4 changed files with 24 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.67 2005/08/24 16:15:49 roberto Exp roberto $
** $Id: llimits.h,v 1.68 2005/12/22 16:19:56 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -15,9 +15,6 @@
#include "lua.h"
#define api_check luai_apicheck
typedef LUAI_UINT32 lu_int32;
typedef LUAI_UMEM lu_mem;
@@ -54,7 +51,19 @@ typedef LUAI_USER_ALIGNMENT_T L_Umaxalign;
typedef LUAI_UACNUMBER l_uacNumber;
#define check_exp(c,e) (lua_assert(c), (e))
/* internal assertions for in-house debugging */
#ifdef lua_assert
#define check_exp(c,e) (lua_assert(c), (e))
#define api_check(l,e) lua_assert(e)
#else
#define lua_assert(c) ((void)0)
#define check_exp(c,e) (e)
#define api_check luai_apicheck
#endif
#ifndef UNUSED