mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 17:41:19 +00:00
- disabled default values for out parameters
https://forum.zdoom.org/viewtopic.php?t=61128
(cherry picked from commit 5d27c16f30
)
This commit is contained in:
parent
340afa4a40
commit
e0b5af42f3
1 changed files with 5 additions and 0 deletions
|
@ -2533,6 +2533,11 @@ void ZCCCompiler::CompileFunction(ZCC_StructWork *c, ZCC_FuncDeclarator *f, bool
|
|||
}
|
||||
else if (p->Default != nullptr)
|
||||
{
|
||||
if (flags & VARF_Out)
|
||||
{
|
||||
Error(p, "Out parameters cannot have default values");
|
||||
}
|
||||
|
||||
flags |= VARF_Optional;
|
||||
hasoptionals = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue