diff options
Diffstat (limited to 'xmake/core/base/bytes.lua')
| -rw-r--r-- | xmake/core/base/bytes.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/bytes.lua b/xmake/core/base/bytes.lua index 76579ab0f..d1d6d8e36 100644 --- a/xmake/core/base/bytes.lua +++ b/xmake/core/base/bytes.lua @@ -422,6 +422,11 @@ function _instance:__concat(other) return new end +-- tostring(bytes) +function _instance:__tostring() + return "<bytes: " .. self:size() .. ">" +end + -- todisplay(bytes) function _instance:__todisplay() local parts = {} |
