diff options
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llimits.h,v 1.116 2014/04/15 16:32:49 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.117 2014/06/26 16:17:35 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 | */ |
@@ -79,18 +79,15 @@ typedef LUAI_UACINT l_uacInt; | |||
79 | /* | 79 | /* |
80 | ** assertion for checking API calls | 80 | ** assertion for checking API calls |
81 | */ | 81 | */ |
82 | #if !defined(luai_apicheck) | ||
83 | |||
84 | #if defined(LUA_USE_APICHECK) | 82 | #if defined(LUA_USE_APICHECK) |
85 | #include <assert.h> | 83 | #include <assert.h> |
86 | #define luai_apicheck(L,e) assert(e) | 84 | #define luai_apicheck(e) assert(e) |
87 | #else | 85 | #else |
88 | #define luai_apicheck(L,e) lua_assert(e) | 86 | #define luai_apicheck(e) lua_assert(e) |
89 | #endif | 87 | #endif |
90 | 88 | ||
91 | #endif | ||
92 | 89 | ||
93 | #define api_check(l,e,msg) luai_apicheck(l,(e) && msg) | 90 | #define api_check(e,msg) luai_apicheck((e) && msg) |
94 | 91 | ||
95 | 92 | ||
96 | #if !defined(UNUSED) | 93 | #if !defined(UNUSED) |