macro function to get exps from collectedBlocks
This commit is contained in:
@@ -1063,6 +1063,10 @@ class Macros {
|
|||||||
null;
|
null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
k.macroVars["getCollectedExps"] = function(blockName) {
|
||||||
|
return k.collectedBlocks[blockName];
|
||||||
|
};
|
||||||
|
|
||||||
k.doc("collectedBlocks", 1, 1, "(collectedBlocks <block symbol>)");
|
k.doc("collectedBlocks", 1, 1, "(collectedBlocks <block symbol>)");
|
||||||
macros["collectedBlocks"] = (wholeExp:ReaderExp, exps:Array<ReaderExp>, k:KissState) -> {
|
macros["collectedBlocks"] = (wholeExp:ReaderExp, exps:Array<ReaderExp>, k:KissState) -> {
|
||||||
var blockName = try {
|
var blockName = try {
|
||||||
|
Reference in New Issue
Block a user