aboutsummaryrefslogtreecommitdiff
path: root/nomsu.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-10-13 16:16:07 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2017-10-13 16:16:07 -0700
commitd13bcde2b9306e0c87b055faed88da76bd3ff41e (patch)
tree4c9e974d8e448adb6f6c1ba232b4114137aba4cc /nomsu.lua
parent7435b61380054307148ec2c3a6af6d7ef9187fbe (diff)
Renamed repr_if_not_string to "stringify" and added nomsu:stringify for
convenience.
Diffstat (limited to 'nomsu.lua')
-rw-r--r--nomsu.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/nomsu.lua b/nomsu.lua
index b937ad8..45a1569 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -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
})