* Removed the ability to use functions inside parameters, to prevent recursion crashes.

* Added an error message for it.
 * Added some other crash preventing measures.
This commit is contained in:
Giacomand
2013-08-06 21:39:21 +01:00
parent 53244202be
commit 2b0ed74f55
3 changed files with 46 additions and 15 deletions
+9
View File
@@ -60,6 +60,15 @@
New(name, token/t)
message="Function '[name]' defined twice."
ParameterFunction
message = "You cannot use a function inside a parameter."
New(token/t)
var/line = "?"
if(t)
line = t.line
message = "[line]: [message]"
/*
Class: runtimeError
An error thrown by the interpreter in running the script.