summaryrefslogtreecommitdiff
path: root/dice-lang/src/bjc/dicelang/CompilerTweaker.java
diff options
context:
space:
mode:
Diffstat (limited to 'dice-lang/src/bjc/dicelang/CompilerTweaker.java')
-rw-r--r--dice-lang/src/bjc/dicelang/CompilerTweaker.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/dice-lang/src/bjc/dicelang/CompilerTweaker.java b/dice-lang/src/bjc/dicelang/CompilerTweaker.java
index 3779f2b..95a8761 100644
--- a/dice-lang/src/bjc/dicelang/CompilerTweaker.java
+++ b/dice-lang/src/bjc/dicelang/CompilerTweaker.java
@@ -82,4 +82,12 @@ public class CompilerTweaker {
opExpander.compile();
}
+ /**
+ * Change the max no. of times defines are allowed to recur.
+ *
+ * @param times The number of times to allow defines to recur.
+ */
+ public void setDefineRecurLimit(int times) {
+ Define.MAX_RECURS = times;
+ }
}