Each SDL script can contain custom functions much like UNIX shell scripts and C functions. A function can appear in any part of an SDL script. You define a function by specifying:
For example, here is a function definetion which accepts two arguments and prints each in a seperate debug call: