- Added ACS_NamedExecuteWithResult for DECORATE expressions. Since this is a pretty long name,

you can also use CallACS, if you wish. The two are synonyms.

SVN r3373 (trunk)
This commit is contained in:
Randy Heit 2012-02-21 19:24:02 +00:00
commit 7b5612c45a
3 changed files with 50 additions and 7 deletions

View file

@ -336,6 +336,18 @@ static FxExpression *ParseExpression0 (FScanner &sc, const PClass *cls)
{
return new FxConstant(sc.Float, scpos);
}
else if (sc.CheckToken(TK_NameConst))
{
return new FxConstant(sc.Name, scpos);
}
else if (sc.CheckToken(TK_StringConst))
{
// String parameters are converted to names. Technically, this should be
// done at a higher level, as needed, but since no functions take string
// arguments and ACS_NamedExecuteWithResult/CallACS need names, this is
// a cheap way to get them working when people use "name" instead of 'name'.
return new FxConstant(FName(sc.String), scpos);
}
else if (sc.CheckToken(TK_Random))
{
FRandom *rng;