script compile time optimizations.
This commit is contained in:
1 parent
06c9aea326
commit
8d97ab26a9
27 files changed
+1071
-193
No files matched your search
@@ -12,7 +12,7 @@ public class Threading
|
||||
{
|
||||
public static void apply(Expression expression)
|
||||
{
|
||||
expression.addFunctionWithDelegation("task", -1, (c, t, expr, tok, lv) ->
|
||||
expression.addFunctionWithDelegation("task", -1, false, false, (c, t, expr, tok, lv) ->
|
||||
{
|
||||
if (lv.size() == 0)
|
||||
throw new InternalExpressionException("'task' requires at least function to call as a parameter");
|
||||
@@ -22,7 +22,7 @@ public class Threading
|
||||
return thread;
|
||||
});
|
||||
|
||||
expression.addFunctionWithDelegation("task_thread", -1, (c, t, expr, tok, lv) ->
|
||||
expression.addFunctionWithDelegation("task_thread", -1, false, false, (c, t, expr, tok, lv) ->
|
||||
{
|
||||
if (lv.size() < 2)
|
||||
throw new InternalExpressionException("'task' requires at least function to call as a parameter");
|
||||
|
||||
Reference in new issue
Block a user