3 Star 3 Fork 1

Gitee 极速下载/luaplus51-all

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/jjensen/luaplus51-all
克隆/下载
AddAutoExp.lua 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
require "ex"
function AddAutoExp(autoexpFileName)
local ignore = false
local file = io.open(autoexpFileName .. ".new", "wt")
if os.path.exists(autoexpFileName) then
for line in io.lines(autoexpFileName) do
if line == '; -- LuaPlus and Lua begin --' then
ignore = true
elseif line == '; -- LuaPlus and Lua end --' then
ignore = false
elseif line == '; This section lets you define your own errors for the HRESULT display.' then
for newLine in io.lines('AutoExpAdditions.txt') do
file:write(newLine .. "\n")
end
file:write(line .. "\n")
else
if not ignore then
file:write(line .. "\n")
end
end
end
file:close()
end
os.copyfile(autoexpFileName .. ".new", autoexpFileName)
os.remove(autoexpFileName .. ".new")
end
function AddVSAutoExp(environmentVariable)
local VS = os.getenv(environmentVariable)
if not VS then return end
VS = VS .. '..\\..\\'
AddAutoExp(VS .. "\\Common7\\Packages\\Debugger\\autoexp.dat")
end
AddVSAutoExp("VS80COMNTOOLS")
AddVSAutoExp("VS90COMNTOOLS")
AddVSAutoExp("VS100COMNTOOLS")
AddVSAutoExp("VS110COMNTOOLS")
local XEDK = os.getenv("XEDK")
if XEDK then
AddAutoExp(XEDK .. "\\bin\\win32\\autoexp.dat")
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/luaplus51-all.git
git@gitee.com:mirrors/luaplus51-all.git
mirrors
luaplus51-all
luaplus51-all
master

搜索帮助