Fixed readargs macro
This commit is contained in:
parent
39f075cb05
commit
ae7b0f5e0c
|
@ -265,7 +265,7 @@
|
|||
{{Error("ref argument is not allowed to have a default value: " ~ o.name ~ '.' ~ arg.name)}}
|
||||
{%- endif ~%}
|
||||
|
||||
{%- do ++default_counter -%}
|
||||
{%- set default_counter = default_counter + 1 -%}
|
||||
if(!args_info.IsDefaultArgUsed({{o.args|length - count_required_args(o) - default_counter}}))
|
||||
{%- endif ~%}
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue