make defined() support testing definedness of variables
Change-Id: I58d2dd402d72ee5a19012a6b5a4ba111717d40cc Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
This commit is contained in:
parent
7da934d776
commit
1388199d4f
@ -2744,6 +2744,8 @@ QMakeProject::doProjectTest(QString func, QList<QStringList> args_list, QHash<QS
|
||||
return testFunctions.contains(args[0]);
|
||||
else if(args[1] == "replace")
|
||||
return replaceFunctions.contains(args[0]);
|
||||
else if(args[1] == "var")
|
||||
return place.contains(args[0]);
|
||||
fprintf(stderr, "%s:%d: defined(function, type): unexpected type [%s].\n",
|
||||
parser.file.toLatin1().constData(), parser.line_no,
|
||||
args[1].toLatin1().constData());
|
||||
|
Loading…
Reference in New Issue
Block a user