diff options
Diffstat (limited to 'DTTemplateFunctions.c')
| -rw-r--r-- | DTTemplateFunctions.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/DTTemplateFunctions.c b/DTTemplateFunctions.c index e494766..8148499 100644 --- a/DTTemplateFunctions.c +++ b/DTTemplateFunctions.c @@ -35,7 +35,7 @@ global func SetFunction(string name, array function) }
else
{
- TMPL_Funcs[GetLength(TMPL_Funcs)] = function;
+ TMPL_Funcs[] = function;
}
}
@@ -95,7 +95,7 @@ global func Function(arguments, commands) }
else
{
- funcContent[GetLength(funcContent)] = [index, escapeCount];
+ funcContent[] = [index, escapeCount];
argument = "";
escapeCount = 0;
}
@@ -110,7 +110,7 @@ global func Function(arguments, commands) {
if(contentPart != "")
{
- funcContent[GetLength(funcContent)] = contentPart;
+ funcContent[] = contentPart;
contentPart = "";
}
@@ -134,8 +134,8 @@ global func Function(arguments, commands) }
}
if(isArg) FatalError(Format("Function: argument-reference \"%s\" not closed.", argument));
- else if(contentPart) funcContent[GetLength(funcContent)] = contentPart;
- funcContents[GetLength(funcContents)] = funcContent;
+ else if(contentPart) funcContent[] = contentPart;
+ funcContents[] = funcContent;
}
return [arguments, funcContents];
|
