lua_writestring & co. moved to llimits.h

They don't need to be visible by clients of Lua.
This commit is contained in:
Roberto Ierusalimschy
2024-06-21 12:29:08 -03:00
parent a08d82eb13
commit e24ce8c2b3
4 changed files with 25 additions and 32 deletions

View File

@@ -41,8 +41,6 @@
** Some sizes are better limited to fit in 'int', but must also fit in
** 'size_t'. (We assume that 'lua_Integer' cannot be smaller than 'int'.)
*/
#define MAX_SIZET ((size_t)(~(size_t)0))
#define MAXSIZE \
(sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX))