diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-25 16:04:46 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-04-25 16:04:55 -0700 |
| commit | 50a092e4b5cb82131c0c8f6f46c7d21a42198858 (patch) | |
| tree | 2ed0726076e7cd7b8170b139cc3ab07808d763db /lua_obj.lua | |
| parent | cb28f52b410f3fbcb01bcc8ef8668de46d8aba68 (diff) | |
Got nomsu codegen working again.
Diffstat (limited to 'lua_obj.lua')
| -rw-r--r-- | lua_obj.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua_obj.lua b/lua_obj.lua index e766c34..4e7de9b 100644 --- a/lua_obj.lua +++ b/lua_obj.lua @@ -104,6 +104,7 @@ do local bits = self.bits for i = 1, n do local b = select(i, ...) + assert(b ~= self, "No recursion please.") bits[#bits + 1] = b if type(b) == 'string' then do @@ -129,6 +130,7 @@ do end self.current_indent = 0 for i, b in ipairs(bits) do + assert(b ~= self, "No recursion please.") if type(b) == 'string' then do local spaces = b:match("\n([ ]*)[^\n]*$") |
