代码拉取完成,页面将自动刷新
同步操作将从 ianaxe/vrpn 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env lua
--[[
Script to generate an include header wrapping windows.h, defining
symbols to make the include minimal, and undefining to initial state
when done. -- Ryan Pavlik
Copyright 2015 Sensics, Inc.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
]]
symbols = {"WIN32_LEAN_AND_MEAN", "NOMINMAX", "NOSERVICE", "NOMCX", "NOIME"}
template = {
before = {
"#ifndef ",
"\n#define ",
"\n#define VRPN_",
"\n#endif\n"
};
after = {
"#ifdef VRPN_",
"\n#undef VRPN_",
"\n#undef ",
"\n#endif\n"
}
}
print [[/** @file
@brief Header to minimally include windows.h
@date 2015
@author
Ryan Pavlik
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef INCLUDED_vrpn_WindowsH_h_GUID_97C90BFD_D6C3_4AB3_3272_A10F7448D165
#define INCLUDED_vrpn_WindowsH_h_GUID_97C90BFD_D6C3_4AB3_3272_A10F7448D165
#ifdef _WIN32
]]
for _, symbol in ipairs(symbols) do
print(table.concat(template.before, symbol))
end
print [[
#include <windows.h>
]]
for _, symbol in ipairs(symbols) do
print(table.concat(template.after, symbol))
end
print [[
#endif // _WIN32
#endif // INCLUDED_vrpn_WindowsH_h_GUID_97C90BFD_D6C3_4AB3_3272_A10F7448D165
]]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。