From 0c89b5b35e335290861a07637e991a58e5919fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Brammer?= Date: Sat, 9 May 2009 15:18:50 +0200 Subject: [PATCH] Warn about obj->C4ID::function, it does not work anymore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit committer: Günther Brammer --- engine/src/C4AulLink.cpp | 1 - engine/src/C4AulParse.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/C4AulLink.cpp b/engine/src/C4AulLink.cpp index 407f0d9fd..955299c3b 100644 --- a/engine/src/C4AulLink.cpp +++ b/engine/src/C4AulLink.cpp @@ -143,7 +143,6 @@ void C4AulScript::AppendTo(C4AulScript &Scr, bool bHighPrio) } // mark as linked // increase code size needed - Scr.CodeSize += CodeSize+1; // append all local vars (if any existing) assert(!Def || this == &Def->Script); assert(!Scr.Def || &Scr.Def->Script == &Scr); diff --git a/engine/src/C4AulParse.cpp b/engine/src/C4AulParse.cpp index 69d795212..175898a51 100644 --- a/engine/src/C4AulParse.cpp +++ b/engine/src/C4AulParse.cpp @@ -515,6 +515,7 @@ static int ToNumber(char c) if (c >= '0' && c <= '9') return c - '0'; if (c >= 'a' && c <= 'z') return 10 + c - 'a'; if (c >= 'A' && c <= 'Z') return 10 + c - 'A'; + assert(false); return 0; } @@ -2850,6 +2851,7 @@ void C4AulParseState::Parse_Expression2(int iParentPrio) C4ID idNS = 0; if(TokenType == ATT_C4ID) { + Warn("->C4ID::function is broken"); // from now on, stupid func names must stay outside ;P idNS = (C4ID) cInt; Shift();