mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
* 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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user