mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 05:53:26 +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_SSE2 "Use SSE2 instead of x87 instructions." ON)
|
||||||
option(LUAJIT_CPU_NOCMOV "Disable NOCMOV." OFF)
|
option(LUAJIT_CPU_NOCMOV "Disable NOCMOV." OFF)
|
||||||
option(LUAJIT_DISABLE_GC64 "Disable GC64" OFF)
|
option(LUAJIT_DISABLE_GC64 "Disable GC64" OFF)
|
||||||
|
option(LUAJIT_ENABLE_FSANITIZE "Enable fsanitize" ON)
|
||||||
option(LUAJIT_NUMMODE "num mode" 2)
|
option(LUAJIT_NUMMODE "num mode" 2)
|
||||||
MARK_AS_ADVANCED(LUAJIT_DISABLE_FFI LUAJIT_ENABLE_LUA52COMPAT
|
MARK_AS_ADVANCED(LUAJIT_DISABLE_FFI LUAJIT_ENABLE_LUA52COMPAT
|
||||||
LUAJIT_DISABLE_GC64
|
LUAJIT_DISABLE_GC64
|
||||||
@ -71,13 +72,15 @@ IF(LUAJIT_NUMMODE)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
######
|
######
|
||||||
|
|
||||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if (LUAJIT_ENABLE_FSANITIZE)
|
||||||
message(STATUS "luajit debug mode")
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
add_definitions(-DLUA_USE_APICHECK -DLUA_USE_ASSERT -DLUAJIT_USE_SYSMALLOC)
|
message(STATUS "luajit debug mode")
|
||||||
if (MSVC)
|
add_definitions(-DLUA_USE_APICHECK -DLUA_USE_ASSERT -DLUAJIT_USE_SYSMALLOC)
|
||||||
add_link_options(-fsanitize=address)
|
if (MSVC)
|
||||||
add_compile_options(-fsanitize=address)
|
add_link_options(-fsanitize=address)
|
||||||
endif()
|
add_compile_options(-fsanitize=address)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
CHECK_TYPE_SIZE("void*" SIZEOF_VOID_P)
|
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\
|
for i = 1, size - 1 do \n\
|
||||||
newTable[i] = tab[size - i] \n\
|
newTable[i] = tab[size - i] \n\
|
||||||
end \n\
|
end \n\
|
||||||
newTable[size] = tab[size] \n\
|
newTable[size] = tab[1] \n\
|
||||||
return newTable \n\
|
return newTable \n\
|
||||||
end \n\
|
end \n\
|
||||||
_loadlua = kleiloadlua \n\
|
_loadlua = kleiloadlua \n\
|
||||||
|
Loading…
Reference in New Issue
Block a user