Small correction in assertion

This commit is contained in:
Roberto Ierusalimschy
2019-12-13 14:02:42 -03:00
parent 1e0ad018ce
commit 3747487320
2 changed files with 2 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ typedef LUAI_UACINT l_uacInt;
** assertion for checking API calls
*/
#if !defined(luai_apicheck)
#define luai_apicheck(l,e) lua_assert(e)
#define luai_apicheck(l,e) ((void)l, lua_assert(e))
#endif
#define api_check(l,e,msg) luai_apicheck(l,(e) && msg)