ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


swap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
swap [2019/09/05 23:41] – created korshunswap [2019/09/05 23:42] (current) korshun
Line 1: Line 1:
-====== swap ======+====== swap() ======
 ''any, any swap(any a, any b)'' ''any, any swap(any a, any b)''
  
 [[new:multiple_return_values|Returns two variables]] in reverse order. This function exists to improve readability when swapping the values of two variables. [[new:multiple_return_values|Returns two variables]] in reverse order. This function exists to improve readability when swapping the values of two variables.
  
-===== Examples =====+==== Examples ====
 Without ''swap()'': Without ''swap()'':
 <code> <code>
swap.1567716089.txt.gz · Last modified: 2019/09/05 23:41 by korshun