Fix &opt bug in defMacro
This commit is contained in:
@@ -494,8 +494,11 @@ class Macros {
|
|||||||
}
|
}
|
||||||
|
|
||||||
macroCallForm += ')';
|
macroCallForm += ')';
|
||||||
if (optIndex == -1)
|
if (optIndex == -1) {
|
||||||
optIndex = minArgs;
|
optIndex = minArgs;
|
||||||
|
} else if (restIndex == -1) {
|
||||||
|
restIndex = optIndex + 1;
|
||||||
|
}
|
||||||
if (restIndex == -1)
|
if (restIndex == -1)
|
||||||
restIndex = optIndex;
|
restIndex = optIndex;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user