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

Next revision
Previous revision
new:swap [2018/02/19 12:41]
korshun created
— (current)
Line 1: Line 1:
-====== swap ====== 
-''any, any swap(any a, any b)'' 
-[[new:multiple_return_values|Returns two variables]] in reverse 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; 
new/swap.1519036904.txt.gz ยท Last modified: 2018/02/19 12:41 by korshun