summaryrefslogtreecommitdiff
path: root/MLKRoot.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-17 22:43:25 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-18 01:21:41 +0200
commitd86ccf58d5b462100d1f4ec5d016024543ec7f53 (patch)
tree857892d893278f2f405d7b0280cb65f96c940899 /MLKRoot.m
parent79b29bf6e41ca122d469040cd671d43ce81bd6df (diff)
Replace special operator %DEFMACRO with intrinsic function %MACROSET.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r--MLKRoot.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/MLKRoot.m b/MLKRoot.m
index 0c59c23..b12cd17 100644
--- a/MLKRoot.m
+++ b/MLKRoot.m
@@ -746,4 +746,15 @@ as provided by method %@ of object %@",
RETURN_VALUE (value);
}
+
++(NSArray *) macroset:(NSArray *)args
+{
+ id symbol = denullify ([args objectAtIndex:0]);
+ id value = denullify ([args objectAtIndex:1]);
+
+ [[MLKLexicalContext globalContext] addMacro:value
+ forSymbol:symbol];
+
+ RETURN_VALUE (value);
+}
@end