Fixed handling of count parameter's default value in Array.Delete()

https://mantis.zdoom.org/view.php?id=571
This commit is contained in:
alexey.lysiuk 2017-04-12 17:40:17 +03:00
parent d8d7dc973c
commit 20a9f17a15

View file

@ -97,7 +97,7 @@ DEFINE_ACTION_FUNCTION(FDynArray_I8, Delete)
{
PARAM_SELF_STRUCT_PROLOGUE(FDynArray_I8);
PARAM_INT(index);
PARAM_INT(count);
PARAM_INT_DEF(count);
self->Delete(index, count);
return 0;
}
@ -200,7 +200,7 @@ DEFINE_ACTION_FUNCTION(FDynArray_I16, Delete)
{
PARAM_SELF_STRUCT_PROLOGUE(FDynArray_I16);
PARAM_INT(index);
PARAM_INT(count);
PARAM_INT_DEF(count);
self->Delete(index, count);
return 0;
}
@ -303,7 +303,7 @@ DEFINE_ACTION_FUNCTION(FDynArray_I32, Delete)
{
PARAM_SELF_STRUCT_PROLOGUE(FDynArray_I32);
PARAM_INT(index);
PARAM_INT(count);
PARAM_INT_DEF(count);
self->Delete(index, count);
return 0;
}
@ -406,7 +406,7 @@ DEFINE_ACTION_FUNCTION(FDynArray_F32, Delete)
{
PARAM_SELF_STRUCT_PROLOGUE(FDynArray_F32);
PARAM_INT(index);
PARAM_INT(count);
PARAM_INT_DEF(count);
self->Delete(index, count);
return 0;
}
@ -509,7 +509,7 @@ DEFINE_ACTION_FUNCTION(FDynArray_F64, Delete)
{
PARAM_SELF_STRUCT_PROLOGUE(FDynArray_F64);
PARAM_INT(index);
PARAM_INT(count);
PARAM_INT_DEF(count);
self->Delete(index, count);
return 0;
}
@ -612,7 +612,7 @@ DEFINE_ACTION_FUNCTION(FDynArray_Ptr, Delete)
{
PARAM_SELF_STRUCT_PROLOGUE(FDynArray_Ptr);
PARAM_INT(index);
PARAM_INT(count);
PARAM_INT_DEF(count);
self->Delete(index, count);
return 0;
}
@ -716,7 +716,7 @@ DEFINE_ACTION_FUNCTION(FDynArray_String, Delete)
{
PARAM_SELF_STRUCT_PROLOGUE(FDynArray_String);
PARAM_INT(index);
PARAM_INT(count);
PARAM_INT_DEF(count);
self->Delete(index, count);
return 0;
}