Diff for games/_shared/macros.h between version 1.1 and 1.2
| version 1.1, 2003/05/11 18:50:17 |
version 1.2, 2003/05/21 13:56:44 |
|
|
| /* $Platon: $ */
|
/* $Platon: games/_shared/macros.h,v 1.1.1.1 2003/05/11 18:50:17 nepto Exp $ */ |
|
|
|
| #ifndef __MACROS_H
|
#ifndef __MACROS_H |
| #define __MACROS_H
|
#define __MACROS_H |
|
|
|
| /* INCLUDE */
|
/* INCLUDE */ |
|
|
|
| /* TYPEDEF */
|
/* TYPEDEF */ |
|
|
|
| /* DEFINE */
|
/* DEFINE */ |
| #ifndef _abc_macros
|
#ifndef _abc_macros |
| # define _abc_macros
|
# define _abc_macros |
| # 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 |
| # define swap(a,b) {a+=b;b=a-b;a-=b;}
|
# define swap(a,b) {a+=b;b=a-b;a-=b;} |
| # define putchxy(x,y,c) {gotoxy(x,y);putch(c);}
|
# define putchxy(x,y,c) {gotoxy(x,y);putch(c);} |
| # define putcharxy(x,y,c) {gotoxy(x,y);putchar(c);}
|
# define putcharxy(x,y,c) {gotoxy(x,y);putchar(c);} |
| # define putsxy(x,y,s) {gotoxy(x,y);puts(s);}
|
# define putsxy(x,y,s) {gotoxy(x,y);puts(s);} |
| # define cputsxy(x,y,s) {gotoxy(x,y);cputs(s);}
|
# define cputsxy(x,y,s) {gotoxy(x,y);cputs(s);} |
| #endif
|
#endif |
|
|
|
| /* INTERFACE */
|
/* INTERFACE */ |
|
|
|
| #endif
|
#endif |
|
|
|
Platon Group <platon@platon.org> http://platon.org/
|
|