-
Notifications
You must be signed in to change notification settings - Fork 4
Varargs
Christian Petersen edited this page Feb 10, 2017
·
2 revisions
Some functions and methods in Angelscript support the use of variable arguments. This allows you to pass a variable number of arguments to the function or method.
Using varargs is mostly the same as using regular arguments, but there are some things to be aware of.
When you pass reference types to varargs functions, make sure to convert it into a handle using @obj
. Otherwise Angelscript will attempt to copy construct it.
The maximum number of arguments is currently 8.