Mercurial > hg > dmlib
comparison src/dmlib.h @ 2486:6d12670e0248
Rename DM_SWAP() macro to DM_SWAP_IF().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 28 Apr 2020 14:45:44 +0300 |
parents | 3b28868475e8 |
children | fcaf2db0cd05 |
comparison
equal
deleted
inserted
replaced
2485:fce2ed3f681f | 2486:6d12670e0248 |
---|---|
271 | 271 |
272 typedef float DMFloat; | 272 typedef float DMFloat; |
273 | 273 |
274 | 274 |
275 // Macro for swapping two lvalues of same type | 275 // Macro for swapping two lvalues of same type |
276 #define DM_SWAP(T, A, B) { if ((B) < (A)) { T swtmp = (B); B = (A); A = swtmp; } } | 276 #define DM_SWAP(T, A, B) { T swtmp = (B); B = (A); A = swtmp; } |
277 #define DM_SWAP_IF(T, A, B) { if ((B) < (A)) { T swtmp = (B); B = (A); A = swtmp; } } | |
277 | 278 |
278 | 279 |
279 /* Drawing modes used by blitting and some other functions. | 280 /* Drawing modes used by blitting and some other functions. |
280 */ | 281 */ |
281 enum | 282 enum |