2022-03-24 13:23:42 +00:00
|
|
|
# 1 "./lua/luaconf.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef luaconf_h
|
2022-03-24 13:23:42 +00:00
|
|
|
#define luaconf_h
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
#include <limits.h>
|
|
|
|
#include <stddef.h>
|
2022-03-24 13:23:42 +00:00
|
|
|
# 50 "./lua/luaconf.h"
|
2022-01-24 02:23:08 +00:00
|
|
|
#if !defined(LUA_USE_C89) && defined(_WIN32) && !defined(_WIN32_WCE)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_USE_WINDOWS
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(LUA_USE_WINDOWS)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_DL_DLL
|
|
|
|
#define LUA_USE_C89
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(LUA_USE_LINUX)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_USE_POSIX
|
|
|
|
#define LUA_USE_DLOPEN
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(LUA_USE_MACOSX)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_USE_POSIX
|
|
|
|
#define LUA_USE_DLOPEN
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUAI_IS32INT ((UINT_MAX >> 30) >= 3)
|
|
|
|
# 101 "./lua/luaconf.h"
|
|
|
|
#define LUA_INT_INT 1
|
|
|
|
#define LUA_INT_LONG 2
|
|
|
|
#define LUA_INT_LONGLONG 3
|
|
|
|
|
|
|
|
|
|
|
|
#define LUA_FLOAT_FLOAT 1
|
|
|
|
#define LUA_FLOAT_DOUBLE 2
|
|
|
|
#define LUA_FLOAT_LONGDOUBLE 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define LUA_INT_DEFAULT LUA_INT_LONGLONG
|
|
|
|
#define LUA_FLOAT_DEFAULT LUA_FLOAT_DOUBLE
|
|
|
|
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_32BITS 0
|
|
|
|
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(LUA_USE_C89) && !defined(LUA_USE_WINDOWS)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_C89_NUMBERS 1
|
2022-01-24 02:23:08 +00:00
|
|
|
#else
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_C89_NUMBERS 0
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#if LUA_32BITS
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#if LUAI_IS32INT
|
|
|
|
#define LUA_INT_TYPE LUA_INT_INT
|
|
|
|
#else
|
|
|
|
#define LUA_INT_TYPE LUA_INT_LONG
|
|
|
|
#endif
|
|
|
|
#define LUA_FLOAT_TYPE LUA_FLOAT_FLOAT
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#elif LUA_C89_NUMBERS
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_INT_TYPE LUA_INT_LONG
|
|
|
|
#define LUA_FLOAT_TYPE LUA_FLOAT_DOUBLE
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#else
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_INT_TYPE LUA_INT_DEFAULT
|
|
|
|
#define LUA_FLOAT_TYPE LUA_FLOAT_DEFAULT
|
|
|
|
|
|
|
|
#endif
|
|
|
|
# 178 "./lua/luaconf.h"
|
|
|
|
#define LUA_PATH_SEP ";"
|
|
|
|
#define LUA_PATH_MARK "?"
|
|
|
|
#define LUA_EXEC_DIR "!"
|
|
|
|
# 193 "./lua/luaconf.h"
|
|
|
|
#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
|
|
|
|
#if defined(_WIN32)
|
|
|
|
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_LDIR "!\\lua\\"
|
|
|
|
#define LUA_CDIR "!\\"
|
|
|
|
#define LUA_SHRDIR "!\\..\\share\\lua\\" LUA_VDIR "\\"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
#if !defined(LUA_PATH_DEFAULT)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_PATH_DEFAULT \
|
|
|
|
LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
|
|
|
|
LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \
|
|
|
|
LUA_SHRDIR"?.lua;" LUA_SHRDIR"?\\init.lua;" \
|
|
|
|
".\\?.lua;" ".\\?\\init.lua"
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(LUA_CPATH_DEFAULT)
|
|
|
|
#define LUA_CPATH_DEFAULT \
|
2022-03-24 13:23:42 +00:00
|
|
|
LUA_CDIR"?.dll;" \
|
|
|
|
LUA_CDIR"..\\lib\\lua\\" LUA_VDIR "\\?.dll;" \
|
|
|
|
LUA_CDIR"loadall.dll;" ".\\?.dll"
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#else
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_ROOT "/usr/local/"
|
|
|
|
#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/"
|
|
|
|
#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
#if !defined(LUA_PATH_DEFAULT)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_PATH_DEFAULT \
|
|
|
|
LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
|
|
|
|
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
|
|
|
|
"./?.lua;" "./?/init.lua"
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(LUA_CPATH_DEFAULT)
|
|
|
|
#define LUA_CPATH_DEFAULT \
|
2022-03-24 13:23:42 +00:00
|
|
|
LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
|
|
|
|
#endif
|
|
|
|
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-01-24 02:23:08 +00:00
|
|
|
#if !defined(LUA_DIRSEP)
|
|
|
|
|
|
|
|
#if defined(_WIN32)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_DIRSEP "\\"
|
2022-01-24 02:23:08 +00:00
|
|
|
#else
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_DIRSEP "/"
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
2022-03-24 13:23:42 +00:00
|
|
|
# 272 "./lua/luaconf.h"
|
|
|
|
#if defined(LUA_BUILD_AS_DLL)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#if defined(LUA_CORE) || defined(LUA_LIB)
|
|
|
|
#define LUA_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define LUA_API __declspec(dllimport)
|
|
|
|
#endif
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#else
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_API extern
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#endif
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUALIB_API LUA_API
|
|
|
|
#define LUAMOD_API LUA_API
|
|
|
|
# 308 "./lua/luaconf.h"
|
|
|
|
#if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
|
|
|
|
defined(__ELF__)
|
|
|
|
#define LUAI_FUNC __attribute__((visibility("internal"))) extern
|
|
|
|
#else
|
|
|
|
#define LUAI_FUNC extern
|
|
|
|
#endif
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUAI_DDEC(dec) LUAI_FUNC dec
|
|
|
|
#define LUAI_DDEF
|
|
|
|
# 332 "./lua/luaconf.h"
|
|
|
|
#if defined(LUA_COMPAT_5_3)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define LUA_COMPAT_MATHLIB
|
|
|
|
# 349 "./lua/luaconf.h"
|
|
|
|
#define LUA_COMPAT_APIINTCASTS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define LUA_COMPAT_LT_LE
|
|
|
|
# 366 "./lua/luaconf.h"
|
|
|
|
#define lua_strlen(L,i) lua_rawlen(L, (i))
|
|
|
|
|
|
|
|
#define lua_objlen(L,i) lua_rawlen(L, (i))
|
|
|
|
|
|
|
|
#define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)
|
|
|
|
#define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
# 403 "./lua/luaconf.h"
|
|
|
|
#define l_floor(x) (l_mathop(floor)(x))
|
|
|
|
|
|
|
|
#define lua_number2str(s,sz,n) \
|
|
|
|
l_sprintf((s), sz, LUA_NUMBER_FMT, (LUAI_UACNUMBER)(n))
|
|
|
|
# 417 "./lua/luaconf.h"
|
2022-01-24 02:23:08 +00:00
|
|
|
#define lua_numbertointeger(n,p) \
|
|
|
|
((n) >= (LUA_NUMBER)(LUA_MININTEGER) && \
|
|
|
|
(n) < -(LUA_NUMBER)(LUA_MININTEGER) && \
|
|
|
|
(*(p) = (LUA_INTEGER)(n), 1))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#if LUA_FLOAT_TYPE == LUA_FLOAT_FLOAT
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_NUMBER float
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_floatatt(n) (FLT_ ##n)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUAI_UACNUMBER double
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_NUMBER_FRMLEN ""
|
|
|
|
#define LUA_NUMBER_FMT "%.7g"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_mathop(op) op ##f
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define lua_str2number(s,p) strtof((s), (p))
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#elif LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_NUMBER long double
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_floatatt(n) (LDBL_ ##n)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUAI_UACNUMBER long double
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_NUMBER_FRMLEN "L"
|
|
|
|
#define LUA_NUMBER_FMT "%.19Lg"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_mathop(op) op ##l
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define lua_str2number(s,p) strtold((s), (p))
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#elif LUA_FLOAT_TYPE == LUA_FLOAT_DOUBLE
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_NUMBER double
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_floatatt(n) (DBL_ ##n)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUAI_UACNUMBER double
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_NUMBER_FRMLEN ""
|
|
|
|
#define LUA_NUMBER_FMT "%.14g"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_mathop(op) op
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define lua_str2number(s,p) strtod((s), (p))
|
|
|
|
|
|
|
|
#else
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
#error "numeric float type not defined"
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#endif
|
|
|
|
# 494 "./lua/luaconf.h"
|
|
|
|
#define LUA_INTEGER_FMT "%" LUA_INTEGER_FRMLEN "d"
|
|
|
|
|
|
|
|
#define LUAI_UACINT LUA_INTEGER
|
|
|
|
|
|
|
|
#define lua_integer2str(s,sz,n) \
|
|
|
|
l_sprintf((s), sz, LUA_INTEGER_FMT, (LUAI_UACINT)(n))
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_UNSIGNED unsigned LUAI_UACINT
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#if LUA_INT_TYPE == LUA_INT_INT
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_INTEGER int
|
|
|
|
#define LUA_INTEGER_FRMLEN ""
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_MAXINTEGER INT_MAX
|
|
|
|
#define LUA_MININTEGER INT_MIN
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_MAXUNSIGNED UINT_MAX
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#elif LUA_INT_TYPE == LUA_INT_LONG
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_INTEGER long
|
|
|
|
#define LUA_INTEGER_FRMLEN "l"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_MAXINTEGER LONG_MAX
|
|
|
|
#define LUA_MININTEGER LONG_MIN
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_MAXUNSIGNED ULONG_MAX
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#elif LUA_INT_TYPE == LUA_INT_LONGLONG
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#if defined(LLONG_MAX)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_INTEGER long long
|
|
|
|
#define LUA_INTEGER_FRMLEN "ll"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_MAXINTEGER LLONG_MAX
|
|
|
|
#define LUA_MININTEGER LLONG_MIN
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_MAXUNSIGNED ULLONG_MAX
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#elif defined(LUA_USE_WINDOWS)
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_INTEGER __int64
|
|
|
|
#define LUA_INTEGER_FRMLEN "I64"
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_MAXINTEGER _I64_MAX
|
|
|
|
#define LUA_MININTEGER _I64_MIN
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_MAXUNSIGNED _UI64_MAX
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#else
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
#error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \
|
|
|
|
or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)"
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#endif
|
2022-01-24 02:23:08 +00:00
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#else
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
#error "numeric integer type not defined"
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#endif
|
|
|
|
# 581 "./lua/luaconf.h"
|
2022-01-24 02:23:08 +00:00
|
|
|
#if !defined(LUA_USE_C89)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_sprintf(s,sz,f,i) snprintf(s,sz,f,i)
|
2022-01-24 02:23:08 +00:00
|
|
|
#else
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_sprintf(s,sz,f,i) ((void)(sz), sprintf(s,f,i))
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
2022-03-24 13:23:42 +00:00
|
|
|
# 594 "./lua/luaconf.h"
|
2022-01-24 02:23:08 +00:00
|
|
|
#if !defined(LUA_USE_C89)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define lua_strx2number(s,p) lua_str2number(s,p)
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p)
|
|
|
|
# 612 "./lua/luaconf.h"
|
|
|
|
#if !defined(LUA_USE_C89)
|
|
|
|
#define lua_number2strx(L,b,sz,f,n) \
|
|
|
|
((void)L, l_sprintf(b,sz,f,(LUAI_UACNUMBER)(n)))
|
|
|
|
#endif
|
|
|
|
# 624 "./lua/luaconf.h"
|
2022-01-24 02:23:08 +00:00
|
|
|
#if defined(LUA_USE_C89) || (defined(HUGE_VAL) && !defined(HUGE_VALF))
|
2022-03-24 13:23:42 +00:00
|
|
|
#undef l_mathop
|
2022-01-24 02:23:08 +00:00
|
|
|
#undef lua_str2number
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_mathop(op) (lua_Number)op
|
|
|
|
#define lua_str2number(s,p) ((lua_Number)strtod((s), (p)))
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
2022-03-24 13:23:42 +00:00
|
|
|
# 638 "./lua/luaconf.h"
|
|
|
|
#define LUA_KCONTEXT ptrdiff_t
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
#if !defined(LUA_USE_C89) && defined(__STDC_VERSION__) && \
|
|
|
|
__STDC_VERSION__ >= 199901L
|
|
|
|
#include <stdint.h>
|
2022-03-24 13:23:42 +00:00
|
|
|
#if defined(INTPTR_MAX)
|
2022-01-24 02:23:08 +00:00
|
|
|
#undef LUA_KCONTEXT
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_KCONTEXT intptr_t
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(lua_getlocaledecpoint)
|
|
|
|
#define lua_getlocaledecpoint() (localeconv()->decimal_point[0])
|
|
|
|
#endif
|
|
|
|
# 666 "./lua/luaconf.h"
|
2022-01-24 02:23:08 +00:00
|
|
|
#if !defined(luai_likely)
|
|
|
|
|
|
|
|
#if defined(__GNUC__) && !defined(LUA_NOBUILTIN)
|
2022-03-24 13:23:42 +00:00
|
|
|
#define luai_likely(x) (__builtin_expect(((x) != 0), 1))
|
|
|
|
#define luai_unlikely(x) (__builtin_expect(((x) != 0), 0))
|
2022-01-24 02:23:08 +00:00
|
|
|
#else
|
2022-03-24 13:23:42 +00:00
|
|
|
#define luai_likely(x) (x)
|
|
|
|
#define luai_unlikely(x) (x)
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(LUA_CORE) || defined(LUA_LIB)
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define l_likely(x) luai_likely(x)
|
|
|
|
#define l_unlikely(x) luai_unlikely(x)
|
|
|
|
#endif
|
|
|
|
# 710 "./lua/luaconf.h"
|
2022-01-24 02:23:08 +00:00
|
|
|
#if defined(LUA_USE_APICHECK)
|
|
|
|
#include <assert.h>
|
2022-03-24 13:23:42 +00:00
|
|
|
#define luai_apicheck(l,e) assert(e)
|
|
|
|
#endif
|
|
|
|
# 733 "./lua/luaconf.h"
|
|
|
|
#if LUAI_IS32INT
|
|
|
|
#define LUAI_MAXSTACK 1000000
|
|
|
|
#else
|
|
|
|
#define LUAI_MAXSTACK 15000
|
2022-01-24 02:23:08 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_EXTRASPACE (sizeof(void *))
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUA_IDSIZE 60
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUAL_BUFFERSIZE ((int)(16 * sizeof(void*) * sizeof(lua_Number)))
|
2022-01-24 02:23:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-03-24 13:23:42 +00:00
|
|
|
#define LUAI_MAXALIGN lua_Number n; double u; void *s; lua_Integer i; long l
|
|
|
|
# 785 "./lua/luaconf.h"
|
|
|
|
#endif
|