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 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, | |||||
g | ) |
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 max | ( | a, | |||
b | ) | (((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, | |||
b | ) | (((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().
Definition at line 19 of file macros.h.
Referenced by DrawMisHist(), ShowAstrosHist(), and ShowSpHist().
#define pButton | ( | a, | |||
b, | |||||
c, | |||||
d, | |||||
e, | |||||
f, | |||||
g | ) |
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, | |||||
g | ) |
Definition at line 51 of file macros.h.
Referenced by AIMaster(), NewAI(), Panic_Level(), Strategy_One(), Strategy_Thr(), and Strategy_Two().