Branch: Tag:

2017-12-28

2017-12-28 02:29:49 by Martin Nilsson <nilsson@fastmail.com>

Clean up stack in create

1347:    try_parameter_pair("xoffset","yoffset",image_layer_set_offset);    try_parameter_pair("fill","fill_alpha",image_layer_set_fill);    try_parameter("tiled",image_layer_set_tiled); +  pop_stack();    }    else if (TYPEOF(Pike_sp[-args]) == T_INT && args>1    && TYPEOF(Pike_sp[1-args]) == T_INT)
1378:    push_object(clone_object(image_program,5));       image_layer_set_image(2); +  pop_n_elems(args);    }    else if (TYPEOF(Pike_sp[-args]) == T_OBJECT || args>1)    {    if (args>2)    {    image_layer_set_mode(args-2); -  pop_stack(); +  pop_n_elems(args-2);    args=2;    }    image_layer_set_image(args); -  +  pop_stack();    }    else    SIMPLE_ARG_TYPE_ERROR("create",1,"mapping|int|Image.Image");