diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-17 22:43:25 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-18 01:21:41 +0200 |
commit | d86ccf58d5b462100d1f4ec5d016024543ec7f53 (patch) | |
tree | 857892d893278f2f405d7b0280cb65f96c940899 /MLKRoot.m | |
parent | 79b29bf6e41ca122d469040cd671d43ce81bd6df (diff) |
Replace special operator %DEFMACRO with intrinsic function %MACROSET.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r-- | MLKRoot.m | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |