diff options
| -rw-r--r-- | xmake/plugins/project/vsxmake/render.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/plugins/project/vsxmake/render.lua b/xmake/plugins/project/vsxmake/render.lua index eb39402af..99be35197 100644 --- a/xmake/plugins/project/vsxmake/render.lua +++ b/xmake/plugins/project/vsxmake/render.lua @@ -22,9 +22,9 @@ function _fill(opt, parmas) return function(match) local imp = match:match("^Import%((.+)%)$") if imp then - local func, overload = os.files(path.join(opt.templatedir, imp .. "(*)")) - assert(overload == 1) - func = func[1] + local funcs = os.files(path.join(opt.templatedir, imp .. "(*)")) + assert(#funcs == 1) + local func = funcs[1] local args = path.filename(func):match("%((.+)%)$"):split(",") return _render(func, opt, args) end |
