ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:swap

This is an old revision of the document!


Table of Contents

swap

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