From 51f0675e413c9fbdd1c12dcfc1956c92285c3f60 Mon Sep 17 00:00:00 2001 From: Grunaka Date: Sun, 22 Nov 2015 14:36:50 +0100 Subject: [PATCH] Moving macro MAX from CBot.h to CBotTwoOpExpr.cpp. --- src/CBot/CBot.h | 2 -- src/CBot/CBotInstr/CBotTwoOpExpr.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CBot/CBot.h b/src/CBot/CBot.h index 0b619fe9..a732d7ae 100644 --- a/src/CBot/CBot.h +++ b/src/CBot/CBot.h @@ -54,8 +54,6 @@ class CBotDefParam; // paramerer list of a function extern bool SaveVar(FILE* pf, CBotVar* pVar); -#define MAX(a,b) ((a>b) ? a : b) - extern CBotInstr* CompileParams(CBotToken* &p, CBotCStack* pStack, CBotVar** ppVars); extern bool TypeCompatible( CBotTypResult& type1, CBotTypResult& type2, int op = 0 ); diff --git a/src/CBot/CBotInstr/CBotTwoOpExpr.cpp b/src/CBot/CBotInstr/CBotTwoOpExpr.cpp index ab5bc653..6a7477f4 100644 --- a/src/CBot/CBotInstr/CBotTwoOpExpr.cpp +++ b/src/CBot/CBotInstr/CBotTwoOpExpr.cpp @@ -33,6 +33,8 @@ // Global include #include +#define MAX(a,b) ((a>b) ? a : b) + //////////////////////////////////////////////////////////////////////////////// CBotTwoOpExpr::CBotTwoOpExpr() {