mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
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:
parent
76dcd9297b
commit
58e95206e2
1 changed files with 6 additions and 1 deletions
|
@ -1565,7 +1565,12 @@ void QCC_PR_ConditionCompilation(void)
|
||||||
if (!QCC_PR_SimpleGetToken ())
|
if (!QCC_PR_SimpleGetToken ())
|
||||||
QCC_PR_ParseError(ERR_NONAME, "No name defined for compiler constant");
|
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);
|
cnst = QCC_PR_DefineName(pr_token);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue