Make it do proper warnings.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@199 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-09-13 03:14:42 +00:00
parent 76dcd9297b
commit 58e95206e2

View file

@ -1565,7 +1565,12 @@ void QCC_PR_ConditionCompilation(void)
if (!QCC_PR_SimpleGetToken ())
QCC_PR_ParseError(ERR_NONAME, "No name defined for compiler constant");
QCC_PR_UndefineName(pr_token);
cnst = Hash_Get(&compconstantstable, pr_token);
if (cnst)
{
Hash_Remove(&compconstantstable, pr_token);
QCC_PR_ParseWarning(WARN_DUPLICATEPRECOMPILER, "Duplicate definition of %s", pr_token);
}
cnst = QCC_PR_DefineName(pr_token);