diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-07-18 16:45:50 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-07-18 16:45:50 +0800 |
| commit | 8c596dc1efa8a1267c222b168a4de9c8ba254760 (patch) | |
| tree | 699c748e101a48ae267b5f7b19adbfea15f3934e /src/lua/llimits.h | |
| parent | 8ab0038c09a79fa8401bb10b7a31d03ef5380417 (diff) | |
| download | yuescript-8c596dc1efa8a1267c222b168a4de9c8ba254760.tar.gz yuescript-8c596dc1efa8a1267c222b168a4de9c8ba254760.tar.bz2 yuescript-8c596dc1efa8a1267c222b168a4de9c8ba254760.zip | |
fix issue for using return statement with export.
Diffstat (limited to 'src/lua/llimits.h')
| -rw-r--r-- | src/lua/llimits.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lua/llimits.h b/src/lua/llimits.h index b86d345..48c97f9 100644 --- a/src/lua/llimits.h +++ b/src/lua/llimits.h | |||
| @@ -84,7 +84,15 @@ typedef LUAI_UACNUMBER l_uacNumber; | |||
| 84 | typedef LUAI_UACINT l_uacInt; | 84 | typedef LUAI_UACINT l_uacInt; |
| 85 | 85 | ||
| 86 | 86 | ||
| 87 | /* internal assertions for in-house debugging */ | 87 | /* |
| 88 | ** Internal assertions for in-house debugging | ||
| 89 | */ | ||
| 90 | #if defined LUAI_ASSERT | ||
| 91 | #undef NDEBUG | ||
| 92 | #include <assert.h> | ||
| 93 | #define lua_assert(c) assert(c) | ||
| 94 | #endif | ||
| 95 | |||
| 88 | #if defined(lua_assert) | 96 | #if defined(lua_assert) |
| 89 | #define check_exp(c,e) (lua_assert(c), (e)) | 97 | #define check_exp(c,e) (lua_assert(c), (e)) |
| 90 | /* to avoid problems with conditions too long */ | 98 | /* to avoid problems with conditions too long */ |
