Final tweaks.

This commit is contained in:
Michael Lenaghan 2024-06-15 19:21:43 -04:00
parent bc027d9bc3
commit ed158ba6dc
4 changed files with 4 additions and 2 deletions

View file

@ -168,6 +168,7 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
#if defined LUAI_ASSERT #if defined LUAI_ASSERT
#define lua_assert(c) assert(c) #define lua_assert(c) assert(c)
#else #else
// [jart]
#define lua_assert(c) unassert(c) #define lua_assert(c) unassert(c)
#endif #endif

View file

@ -14,6 +14,7 @@
check_exp(('A' <= (c) && (c) <= 'Z') || (c) == ((c) | ('A' ^ 'a')), \ check_exp(('A' <= (c) && (c) <= 'Z') || (c) == ((c) | ('A' ^ 'a')), \
(c) | ('A' ^ 'a')) (c) | ('A' ^ 'a'))
// [jart]
#define lisdigit(C) \ #define lisdigit(C) \
({ \ ({ \
unsigned char c_ = (C); \ unsigned char c_ = (C); \

View file

@ -1259,7 +1259,7 @@ static int panicback (lua_State *L) {
b = (struct Aux *)lua_touserdata(L, -1); b = (struct Aux *)lua_touserdata(L, -1);
lua_pop(L, 1); /* remove 'Aux' struct */ lua_pop(L, 1); /* remove 'Aux' struct */
runC(b->L, L, b->paniccode); /* run optional panic code */ runC(b->L, L, b->paniccode); /* run optional panic code */
_gclongjmp(b->jb, 1); // [jart] gclongjmp(b->jb, 1); // [jart]
return 1; /* to avoid warnings */ return 1; /* to avoid warnings */
} }