diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-07 22:53:53 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-07 22:53:53 -0500 |
| commit | faa20db28295845973b895995c92a70a247f789c (patch) | |
| tree | e6e276b152baa424814884d80a4354b77d38dd23 /cs/types.cs | |
| parent | 5a159ae75ae4a9b302f2a5a1c826fbc872981368 (diff) | |
| download | mal-faa20db28295845973b895995c92a70a247f789c.tar.gz mal-faa20db28295845973b895995c92a70a247f789c.zip | |
C#: add step8_macros
Diffstat (limited to 'cs/types.cs')
| -rw-r--r-- | cs/types.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cs/types.cs b/cs/types.cs index 442a2b2..cd94f94 100644 --- a/cs/types.cs +++ b/cs/types.cs @@ -295,6 +295,7 @@ namespace Mal { MalVal ast = null; Mal.env.Env env = null; MalList fparams; + bool macro = false; public MalFunction(Func<MalList, MalVal> fn) { this.fn = fn; } @@ -325,6 +326,9 @@ namespace Mal { public Mal.env.Env genEnv(MalList args) { return new Mal.env.Env(env, fparams, args); } + public bool isMacro() { return macro; } + public void setMacro() { macro = true; } + } } } |
