Fixed readargs macro

This commit is contained in:
madpwnhammer 2022-12-04 13:15:14 +03:00
parent 39f075cb05
commit ae7b0f5e0c
1 changed files with 1 additions and 1 deletions

View File

@ -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 ~%}
{