mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 09:20:29 +00:00
Final tweaks.
This commit is contained in:
parent
bc027d9bc3
commit
ed158ba6dc
4 changed files with 4 additions and 2 deletions
1
third_party/lua/lauxlib.h
vendored
1
third_party/lua/lauxlib.h
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
1
third_party/lua/lctype.h
vendored
1
third_party/lua/lctype.h
vendored
|
@ -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); \
|
||||||
|
|
2
third_party/lua/ltests.c
vendored
2
third_party/lua/ltests.c
vendored
|
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue