Some improvements in 'luaconf.h'

Added '#if !defined' in some definitions to allow external definitions;
more comments; other small changes.
This commit is contained in:
Roberto Ierusalimschy
2019-05-13 14:24:10 -03:00
parent d881325c2f
commit 49c42f3615
3 changed files with 65 additions and 36 deletions

View File

@@ -28,7 +28,7 @@
/*
** Integer type for decoded UTF-8 values; MAXUTF needs 31 bits.
*/
#if LUAI_BITSINT >= 31
#if ((UINT_MAX >> 15) >> 15) >= 1
typedef unsigned int utfint;
#else
typedef unsigned long utfint;