ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:cond

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/cond.1489567518.txt.gz · Last modified: 2017/03/15 10:45 by korshun