diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-13 16:16:07 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-13 16:16:07 -0700 |
| commit | d13bcde2b9306e0c87b055faed88da76bd3ff41e (patch) | |
| tree | 4c9e974d8e448adb6f6c1ba232b4114137aba4cc /nomsu.lua | |
| parent | 7435b61380054307148ec2c3a6af6d7ef9187fbe (diff) | |
Renamed repr_if_not_string to "stringify" and added nomsu:stringify for
convenience.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -578,7 +578,7 @@ do if statement then self:error("Cannot use [[" .. tostring(bit.src) .. "]] as a string interpolation value, since it's not an expression.") end - insert(concat_parts, "nomsu.utils.repr_if_not_string(" .. tostring(expr) .. ")") + insert(concat_parts, "nomsu:stringify(" .. tostring(expr) .. ")") _continue_0 = true until true if not _continue_0 then @@ -905,6 +905,9 @@ do self.repr = function(self, ...) return repr(...) end + self.stringify = function(self, ...) + return utils.stringify(...) + end self.loaded_files = setmetatable({ }, { __index = parent and parent.loaded_files }) |
