Rozdiely pre libplaton/platon/macros.h medzi verziami 1.2 a 1.3
| verzia 1.2, 2001/10/05 15:15:04 |
verzia 1.3, 2001/10/15 11:10:51 |
|
|
| * Basic macros header file. * |
* Basic macros header file. * |
| * * |
* * |
| * Programmed by Ondrej Jombik. * |
* Programmed by Ondrej Jombik. * |
| * (c) Copyright 2000 Condy software inc. * |
* (c) Copyright 1996-2000 Condy software inc. * |
| * (c) Copyright 2001 Platon software development group * |
* (c) Copyright 2001 Platon software development group * |
| * All rights reserved. * |
* All rights reserved. * |
| * * |
* * |
|
|
| #define _PLATON_MACROS_H |
#define _PLATON_MACROS_H |
| |
|
| #ifndef max |
#ifndef max |
| #define max(a,b) (((a)>(b))?(a):(b)) |
#define max(a, b) (((a) > (b)) ? (a) : (b)) |
| #endif |
#endif |
| |
|
| #ifndef min |
#ifndef min |
| #define min(a,b) (((a)<(b))?(a):(b)) |
#define min(a, b) (((a) < (b)) ? (a) : (b)) |
| #endif |
#endif |
| |
|
| #ifndef swap |
#ifndef swap |
| #define swap(a,b) {(a)+=(b);(b)=(a)-(b);(a)-=(b);} |
#define swap(a, b) { (a) += (b); (b) = (a) - (b); (a) -= (b); } |
| #endif |
#endif |
| |
|
| #endif /* #ifndef _PLATON_MACROS_H */ |
#endif /* #ifndef _PLATON_MACROS_H */ |
Platon Group <platon@platon.sk> http://platon.sk/
|
|