aboutsummaryrefslogtreecommitdiff
path: root/cs/types.cs
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-07 22:53:53 -0500
committerJoel Martin <github@martintribe.org>2014-04-07 22:53:53 -0500
commitfaa20db28295845973b895995c92a70a247f789c (patch)
treee6e276b152baa424814884d80a4354b77d38dd23 /cs/types.cs
parent5a159ae75ae4a9b302f2a5a1c826fbc872981368 (diff)
downloadmal-faa20db28295845973b895995c92a70a247f789c.tar.gz
mal-faa20db28295845973b895995c92a70a247f789c.zip
C#: add step8_macros
Diffstat (limited to 'cs/types.cs')
-rw-r--r--cs/types.cs4
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; }
+
}
}
}