diff options
| author | ruki <[email protected]> | 2019-08-31 21:47:39 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-31 21:48:20 +0800 |
| commit | bb1cd08b49ce18a63d08287b81f5b50b57395702 (patch) | |
| tree | 15768e94d99c663cede1eabf45d8180cc17264b8 /xmake/plugins/project/vstudio/impl/vsfile.lua | |
| parent | f4f94d8e5bbbe2d5acf2bac99bdb12d80f3b9f47 (diff) | |
fix vs tips and vsfile
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vsfile.lua')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vsfile.lua | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vsfile.lua b/xmake/plugins/project/vstudio/impl/vsfile.lua index 83c1176bc..51b755530 100644 --- a/xmake/plugins/project/vstudio/impl/vsfile.lua +++ b/xmake/plugins/project/vstudio/impl/vsfile.lua @@ -22,51 +22,51 @@ _g.indentchar = '\t' -- print file -function _print(self, ...) +function _print_impl(self, ...) -- print indent for i = 1, self._indent do - self:_write(_g.indentchar) + self:_write_impl(_g.indentchar) end -- print it - self:_print(...) + self:_print_impl(...) end -- printf file -function _printf(self, ...) +function _printf_impl(self, ...) -- print indent for i = 1, self._indent do - self:_write(_g.indentchar) + self:_write_impl(_g.indentchar) end -- printf it - self:_printf(...) + self:_printf_impl(...) end -- write file -function _write(self, ...) +function _write_impl(self, ...) -- print indent for i = 1, self._indent do - self:_write(_g.indentchar) + self:_write_impl(_g.indentchar) end -- write it - self:_write(...) + self:_write_impl(...) end -- writef file -function _writef(self, ...) +function _writef_impl(self, ...) -- print indent for i = 1, self._indent do - self:_write(_g.indentchar) + self:_write_impl(_g.indentchar) end -- writef it - self:_writef(...) + self:_writef_impl(...) end -- enter and print file @@ -100,14 +100,14 @@ function open(filepath, mode) local file = io.open(filepath, mode) -- hook print, printf and write - file._print = file.print - file._printf = file.printf - file._write = file.write - file._writef = file.writef - file.print = _print - file.printf = _printf - file.write = _write - file.writef = _writef + file._print_impl = file.print + file._printf_impl = file.printf + file._write_impl = file.write + file._writef_impl = file.writef + file.print = _print_impl + file.printf = _printf_impl + file.write = _write_impl + file.writef = _writef_impl -- add enter and leave interfaces file.enter = _enter |
