diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-20 15:07:57 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-10-20 15:07:57 -0700 |
| commit | b909dce5d11e1b9ae15ae68ec8646e162c30b56d (patch) | |
| tree | 3adef40acc0c753b838ffc9b93443853482e5726 /nomsu.moon | |
| parent | 9f61e7f90d4729a9afba1c08d6ce45af460e5d8f (diff) | |
Fix for callstack.
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -274,7 +274,7 @@ class NomsuCompiler -- TODO: maybe optimize this by making the callstack a Counter and using a -- move-to-front optimization on the whitelist to check most likely candidates sooner for caller in *@callstack - if whiteset[caller[1]] then return true + if caller != "#macro" and whiteset[caller[1]] then return true @error "You do not have the authority to call: #{stub}" check_permission: (fn_def)=> @@ -288,7 +288,7 @@ class NomsuCompiler -- TODO: maybe optimize this by making the callstack a Counter and using a -- move-to-front optimization on the whitelist to check most likely candidates sooner for caller in *@callstack - if whiteset[caller[1]] then return true + if caller != "#macro" and whiteset[caller[1]] then return true return false parse: (str, filename)=> |
