diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-08 15:06:05 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-08 15:06:05 -0700 |
| commit | 529afd465fbbfbf923831d8a33fc3ce349dc703f (patch) | |
| tree | b87f31c1e2e2832c80acd7baa60656c45420ac87 /nomsu.lua | |
| parent | 6a429d79558f70578ba30565f5ae299f0fe42da1 (diff) | |
Fixed permissions to work better with aliases.
Diffstat (limited to 'nomsu.lua')
| -rw-r--r-- | nomsu.lua | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -207,6 +207,7 @@ do end assert(type(thunk) == 'function', "Bad thunk: " .. tostring(repr(thunk))) local canonical_args = nil + local aliases = { } local _list_0 = self:get_stubs(signature) for _index_0 = 1, #_list_0 do local _des_0 = _list_0[_index_0] @@ -228,12 +229,14 @@ do else canonical_args = utils.set(arg_names) end + insert(aliases, stub) self.defs[stub] = { thunk = thunk, stub = stub, arg_names = arg_names, src = src, - is_macro = is_macro + is_macro = is_macro, + aliases = aliases } end end, @@ -781,7 +784,9 @@ do return repr(...) end self.loaded_files = { } - return self:initialize_core() + if not parent then + return self:initialize_core() + end end, __base = _base_0, __name = "NomsuCompiler" |
