mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-19 21:43:27 +00:00
fix table.reverse
This commit is contained in:
parent
b9786d3cb3
commit
cfc017496c
@ -37,6 +37,7 @@ option(LUAJIT_DISABLE_JIT "Disable JIT." OFF)
|
||||
option(LUAJIT_CPU_SSE2 "Use SSE2 instead of x87 instructions." ON)
|
||||
option(LUAJIT_CPU_NOCMOV "Disable NOCMOV." OFF)
|
||||
option(LUAJIT_DISABLE_GC64 "Disable GC64" OFF)
|
||||
option(LUAJIT_ENABLE_FSANITIZE "Enable fsanitize" ON)
|
||||
option(LUAJIT_NUMMODE "num mode" 2)
|
||||
MARK_AS_ADVANCED(LUAJIT_DISABLE_FFI LUAJIT_ENABLE_LUA52COMPAT
|
||||
LUAJIT_DISABLE_GC64
|
||||
@ -71,13 +72,15 @@ IF(LUAJIT_NUMMODE)
|
||||
ENDIF()
|
||||
######
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
message(STATUS "luajit debug mode")
|
||||
add_definitions(-DLUA_USE_APICHECK -DLUA_USE_ASSERT -DLUAJIT_USE_SYSMALLOC)
|
||||
if (MSVC)
|
||||
add_link_options(-fsanitize=address)
|
||||
add_compile_options(-fsanitize=address)
|
||||
endif()
|
||||
if (LUAJIT_ENABLE_FSANITIZE)
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
message(STATUS "luajit debug mode")
|
||||
add_definitions(-DLUA_USE_APICHECK -DLUA_USE_ASSERT -DLUAJIT_USE_SYSMALLOC)
|
||||
if (MSVC)
|
||||
add_link_options(-fsanitize=address)
|
||||
add_compile_options(-fsanitize=address)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
CHECK_TYPE_SIZE("void*" SIZEOF_VOID_P)
|
||||
|
@ -479,7 +479,7 @@ static int lj_cf_package_require(lua_State *L)
|
||||
for i = 1, size - 1 do \n\
|
||||
newTable[i] = tab[size - i] \n\
|
||||
end \n\
|
||||
newTable[size] = tab[size] \n\
|
||||
newTable[size] = tab[1] \n\
|
||||
return newTable \n\
|
||||
end \n\
|
||||
_loadlua = kleiloadlua \n\
|
||||
|
Loading…
Reference in New Issue
Block a user