ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools



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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
functions:swap [2017/03/15 10:52]
— (current)
Line 1: Line 1:
-====== swap ====== 
-{{tag>math acs_enhancements}} 
-''any, any swap(any a, any b)'' 
-[[:types|any - any type (int, fixed or str)]] 
-[[:Multiple_return_values|This function returns multiple values.]] 
-===== Description ===== 
-Returns two variables in a swapped order. This function exists to improve readability. 
-===== Examples ===== 
-Without swap(): 
-int tmp = x; 
-x = y; 
-y = tmp; 
-With swap(): 
-swap(x, y); 
-x = r1; 
-y = r2; 
functions/swap.1489567928.txt.gz ยท Last modified: 2017/03/15 10:52 by korshun