An ACS library for ZDoom-based ports
This is an old revision of the document!
any, any swap(any a, any b)
any - any type (int, fixed or str)
This function returns multiple values.
Returns two variables in a swapped order. This function exists to improve readability.
Without swap():
int tmp = x; x = y; y = tmp;
With swap():
swap(x, y); x = r1; y = r2;