UPD: Better Lua version check

This commit is contained in:
Alexander Koblov 2018-03-04 13:05:06 +00:00
commit 2ee46cc7ed

View file

@ -648,7 +648,7 @@ function LuaCheckVersion: Boolean;
begin
Result:= True;
if Assigned(lua_version) then begin
Result:= (lua_version(nil)^ = LUA_VERSION_NUM);
Result:= (Trunc(lua_version(nil)^) = LUA_VERSION_NUM);
end;
Result:= Result and (luaJIT = False);
end;