summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/Helpers.c
blob: 9b7d45731f0daef4fe1b9010491ec399c449e943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*-- Helpers --*/

#strict 2

global func IIf(expression, truePart, falsePart)
{
	if (expression)
	{
		return truePart;
	}
	else
	{
		return falsePart;
	}
}

global func RGBpA(int rgb, int a) { return (a & 255)<<24 | rgb & 0xFFFFFF; }