diff options
| author | ruki <[email protected]> | 2020-01-31 23:24:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-01-31 14:24:07 +0800 |
| commit | 14bb17934b8acf2a0633f8af185c6a024fe37e54 (patch) | |
| tree | f74db3acb5334965c5cdaf4d140f39c817310b8c /xmake/core/base/io.lua | |
| parent | ec427567238b5c9302d374c475980c070b42d498 (diff) | |
add pipe lua modules
Diffstat (limited to 'xmake/core/base/io.lua')
| -rw-r--r-- | xmake/core/base/io.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/base/io.lua b/xmake/core/base/io.lua index 0770436eb..d950c07b0 100644 --- a/xmake/core/base/io.lua +++ b/xmake/core/base/io.lua @@ -34,12 +34,12 @@ io._file = _file io._filelock = _filelock io._stdfile = io._stdfile or io.stdfile --- new an file -function _file.new(filepath, fileref, isstdfile) +-- new a file +function _file.new(filepath, cdata, isstdfile) local file = table.inherit(_file) file._NAME = path.filename(filepath) file._PATH = isstdfile and filepath or path.absolute(filepath) - file._FILE = fileref + file._FILE = cdata setmetatable(file, _file) return file end |
