aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/llimits.h b/llimits.h
index c4220d67..4401c95e 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.72 2009/07/01 16:14:15 roberto Exp roberto $ 2** $Id: llimits.h,v 1.73 2009/07/15 17:26:14 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -55,16 +55,18 @@ typedef LUAI_UACNUMBER l_uacNumber;
55#ifdef lua_assert 55#ifdef lua_assert
56 56
57#define check_exp(c,e) (lua_assert(c), (e)) 57#define check_exp(c,e) (lua_assert(c), (e))
58#define api_check(l,e) lua_assert(e) 58#undef luai_apicheck
59#define luai_apicheck(L,e) lua_assert(e)
59 60
60#else 61#else
61 62
62#define lua_assert(c) ((void)0) 63#define lua_assert(c) ((void)0)
63#define check_exp(c,e) (e) 64#define check_exp(c,e) (e)
64#define api_check luai_apicheck
65 65
66#endif 66#endif
67 67
68#define api_check(l,e,msg) luai_apicheck(l,(e) && msg)
69
68 70
69#ifndef UNUSED 71#ifndef UNUSED
70#define UNUSED(x) ((void)(x)) /* to avoid warnings */ 72#define UNUSED(x) ((void)(x)) /* to avoid warnings */