- 授权协议: MIT
- 开发语言: Lua
- 操作系统: 跨平台
- 软件首页: https://gitee.com/openn2o/def
- 软件文档: https://gitee.com/openn2o/def
软件介绍
def 条件编译处理工具
这是一个编程语言无关的条件编译插件。 首先你要确认的是你的代码需要使用条件编译,或者有多种模态发布到不同平台的限制。这个工具本质是和任何语言无关,你可以在你的代码里免费使用。
{% if SCRIPT == "lua" then %}
return exports.GetValueByType (eax.value);
{% end %}
{% if SCRIPT == "nxx" then %}
return exports.GetValueByType (eax.value);
{% end %}
{% if SCRIPT == "xxx" then %}
return exports.GetValueByType (eax.value);
{% end %}使用方式
lua def.lua 输入文件 输出文件 SCRIPT=lua DEBUG=1
