Rozdiely pre libplaton/platon/macros.h medzi verziami 1.4 a 1.5
| verzia 1.4, 2001/10/17 15:26:12 |
verzia 1.5, 2002/03/14 23:08:39 |
|
|
| * * |
* * |
| * Basic macros header file. * |
* Basic macros header file. * |
| * * |
* * |
| * Programmed by Ondrej Jombik. * |
* Programmed by Ondrej Jombik * |
| * (c) Copyright 1996-2000 Condy software inc. * |
* (c) Copyright 1996-2000 Condy software inc. * |
| * (c) Copyright 2001 Platon software development group * |
* (c) Copyright 2001-2002 Platon software development group * |
| * All rights reserved. * |
* All rights reserved. * |
| * * |
* * |
| * Updates: 16.4.2000, 5.10.2001 * |
* Updates: 16.4.2000, 5.10.2001 * |
| |
* 14.3.2002 - copyrights updates * |
| |
* - swap() macro improvements * |
| * * |
* * |
| **************************************************************************/ |
**************************************************************************/ |
| |
|
|
|
| #endif |
#endif |
| |
|
| #ifndef swap |
#ifndef swap |
| #define swap(a, b) { (a) += (b); (b) = (a) - (b); (a) -= (b); } |
#define swap(a, b) \ |
| |
do { \ |
| |
(a) += (b); \ |
| |
(b) = (a) - (b); \ |
| |
(a) -= (b); \ |
| |
} while (0) |
| #endif |
#endif |
| |
|
| #endif /* #ifndef _PLATON_MACROS_H */ |
#endif /* #ifndef _PLATON_MACROS_H */ |
Platon Group <platon@platon.sk> http://platon.sk/
|
|