macros.h File Reference

Go to the source code of this file.

Defines

#define _STRINGIFY(x)   #x
#define ARRAY_LENGTH(arr)   ((sizeof (arr)) / (sizeof ((arr)[0])))
#define Button2(a, b, c, d, e, f, g)
#define IRBox(a, b, c, d, e)   {InBox((a),(b),(c),(d));RectFill((a)+1,(b)+1,(c)-1,(d)-1,(e));}
#define max(a, b)   (((a) >= (b)) ? (a) : (b))
#define min(a, b)   (((a) <= (b)) ? (a) : (b))
#define ORBox(a, b, c, d, e)   {OutBox((a),(b),(c),(d));RectFill((a)+1,(b)+1,(c)-1,(d)-1,(e));}
#define pButton(a, b, c, d, e, f, g)
#define pnButton(a, b, c, d, e, f, g)
#define poz(a)   (((a)<0)?0:(a))
#define PreChe(a, b)   (Data->Prestige[(b)].Place==(a) || Data->Prestige[(b)].mPlace==(a))
#define STRINGIFY(x)   _STRINGIFY(x)


Define Documentation

#define _STRINGIFY ( x   )     #x

Definition at line 16 of file macros.h.

#define ARRAY_LENGTH ( arr   )     ((sizeof (arr)) / (sizeof ((arr)[0])))

Definition at line 5 of file macros.h.

Referenced by DoCycle(), MisDur(), NMod(), parse_var_value(), read_config_file(), setup_options(), transform_palette(), and write_default_config().

#define Button2 ( a,
b,
c,
d,
e,
f,
 ) 

Value:

if ((x>=(a) && y>=(b) && x<=(c) && y<=(d) && mousebuttons==1) || ((f)==(g)))\
                            { \
                            WaitForMouseUp(); \
                            (e); \
                            };

Definition at line 42 of file macros.h.

Referenced by Mission_Data_Buttons(), Records(), and ShowPrest().

#define IRBox ( a,
b,
c,
d,
 )     {InBox((a),(b),(c),(d));RectFill((a)+1,(b)+1,(c)-1,(d)-1,(e));}

Definition at line 18 of file macros.h.

Referenced by ShowAstrosHist(), and ShowSpHist().

#define max ( a,
 )     (((a) >= (b)) ? (a) : (b))

Definition at line 12 of file macros.h.

Referenced by AIFuture(), AstSel(), CalcPresRev(), ChangeStat(), DrawBudget(), DrawPastExp(), main(), PlaySequence(), PortOutLine(), PortRestore(), Programs(), Replay(), TransAstro(), and UpdateRecords().

#define min ( a,
 )     (((a) <= (b)) ? (a) : (b))

Definition at line 8 of file macros.h.

Referenced by AstSel(), audio_callback(), audio_cb(), CalcPresRev(), intersect_area(), mm_decode_audio(), PortOutLine(), PortRestore(), ShowEvt(), and yuv_to_overlay().

#define ORBox ( a,
b,
c,
d,
 )     {OutBox((a),(b),(c),(d));RectFill((a)+1,(b)+1,(c)-1,(d)-1,(e));}

Definition at line 19 of file macros.h.

Referenced by DrawMisHist(), ShowAstrosHist(), and ShowSpHist().

#define pButton ( a,
b,
c,
d,
e,
f,
 ) 

Value:

if ((x>=(a) && y>=(b) && x<=(c) && y<=(d) && mousebuttons==1) || ((f)==(g)))\
                            { \
                            InBox((a),(b),(c),(d)); \
                            WaitForMouseUp(); \
                            (e);\
                        if((f)>0) delay(150); \
                            OutBox((a),(b),(c),(d));\
                            };

Definition at line 23 of file macros.h.

Referenced by Records(), ShowAstrosHist(), ShowPrest(), and ShowSpHist().

#define pnButton ( a,
b,
c,
d,
e,
f,
 ) 

Value:

if ((x>=(a) && y>=(b) && x<=(c) && y<=(d) && mousebuttons==1) || ((f)!=(g)))\
                { \
                InBox((a),(b),(c),(d)); \
                WaitForMouseUp(); \
                (e); \
                    if((f)>0) delay(150); \
                OutBox((a),(b),(c),(d)); \
                };

Definition at line 33 of file macros.h.

#define poz (  )     (((a)<0)?0:(a))

Definition at line 48 of file macros.h.

#define PreChe ( a,
 )     (Data->Prestige[(b)].Place==(a) || Data->Prestige[(b)].mPlace==(a))

Definition at line 51 of file macros.h.

Referenced by AIMaster(), NewAI(), Panic_Level(), Strategy_One(), Strategy_Thr(), and Strategy_Two().

#define STRINGIFY ( x   )     _STRINGIFY(x)

Definition at line 15 of file macros.h.


Generated on Fri Sep 28 00:35:47 2007 for raceintospace by  doxygen 1.5.3