Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

Would it be possible to add the following?

Last post 06-25-2008, 6:36 PM by James Gregory. 0 replies.
Sort Posts: Previous Next
  •  06-25-2008, 6:36 PM 2583

    Would it be possible to add the following?

    to squirrel.h:

    SQUIRREL_API SQRESULT sq_arrayremove(HSQUIRRELVM v,SQInteger idx,SQUnsignedInteger arr_idx);

    and to sqapi.cpp:

    SQRESULT sq_arrayremove(HSQUIRRELVM v,SQInteger idx,SQUnsignedInteger arr_idx)
    {
    sq_aux_paramscheck(v, 1);
    SQObjectPtr *arr;
    _GETSAFE_OBJ(v, idx, OT_ARRAY,arr);
    _array(*arr)->Remove(arr_idx);
    return SQ_OK;
    }


    ?
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems