- use the function defaults from the script instead of explicitly setting them again in the code. This is a needless cause of potential errors and since the values are readily available now it's better to use them in the functions.

- fixed: ZCCCompiler did not process array access nodes.
- fixed: Function argument names were not placed in the destination list by the compiler.
- scriptified several trivial functions from p_actionfunctions.cpp.
This commit is contained in:
Christoph Oelckers 2016-10-27 15:53:53 +02:00
commit 948ef62fcd
13 changed files with 707 additions and 996 deletions

View file

@ -474,10 +474,11 @@ class FxIntCast : public FxExpression
{
FxExpression *basex;
bool NoWarn;
bool Explicit;
public:
FxIntCast(FxExpression *x, bool nowarn);
FxIntCast(FxExpression *x, bool nowarn, bool explicitly = false);
~FxIntCast();
FxExpression *Resolve(FCompileContext&);
@ -559,10 +560,11 @@ class FxTypeCast : public FxExpression
{
FxExpression *basex;
bool NoWarn;
bool Explicit;
public:
FxTypeCast(FxExpression *x, PType *type, bool nowarn);
FxTypeCast(FxExpression *x, PType *type, bool nowarn, bool explicitly = false);
~FxTypeCast();
FxExpression *Resolve(FCompileContext&);