- implemented named arguments.
- fixed flag CVAR access. As it turned out, OP_LBIT is a bit messy to set up properly when accessing integers that may or may not be big endian, so it now uses a shift and bit masking to do its work. - used the SpawnPlayerMissile call in A_FireBFG to test named arguments.
This commit is contained in:
parent
7d8143224e
commit
e7f6bae83e
4 changed files with 119 additions and 5 deletions
|
|
@ -2845,8 +2845,9 @@ FxExpression *ZCCCompiler::ConvertNode(ZCC_TreeNode *ast)
|
|||
case AST_FuncParm:
|
||||
{
|
||||
auto fparm = static_cast<ZCC_FuncParm *>(ast);
|
||||
// ignore the label for now, that's stuff for far later, when a bit more here is working.
|
||||
return ConvertNode(fparm->Value);
|
||||
auto node = ConvertNode(fparm->Value);
|
||||
if (fparm->Label != NAME_None) node = new FxNamedNode(fparm->Label, node, *ast);
|
||||
return node;
|
||||
}
|
||||
|
||||
case AST_ExprID:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue