mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 23:02:07 +00:00
allow "&" instead of "out" in function pointer parameters
This commit is contained in:
parent
c935a95cb0
commit
dccce46d5b
1 changed files with 8 additions and 0 deletions
|
@ -1045,6 +1045,14 @@ func_ptr_param(X) ::= func_param_flags(A) type(B).
|
|||
X = parm;
|
||||
}
|
||||
|
||||
func_ptr_param(X) ::= func_param_flags(A) type(B) AND.
|
||||
{
|
||||
NEW_AST_NODE(FuncPtrParamDecl,parm,A.SourceLoc ? A.SourceLoc : B->SourceLoc);
|
||||
parm->Type = B;
|
||||
parm->Flags = A.Int | ZCC_Out;
|
||||
X = parm;
|
||||
}
|
||||
|
||||
aggregate_type(X) ::= CLASS(T) class_restrictor(A). /* class<type> */
|
||||
{
|
||||
NEW_AST_NODE(ClassType,cls,T);
|
||||
|
|
Loading…
Reference in a new issue