SGScript.Variable.ArrayPopRetrieve C# (CSharp) Method

ArrayPopRetrieve() public method

public ArrayPopRetrieve ( Int32 count ) : SGScript.Variable[]
count System.Int32
return SGScript.Variable[]
        public Variable[] ArrayPopRetrieve( Int32 count )
        {
            Int32 arrsize = ArraySize();
            if( arrsize < count )
                throw new SGSException( RC.EINPROC, string.Format( "Not enough items in array {0}, expected at least {1}", arrsize, count ) );
            ArrayPopToStack( _sgsEngine, count );
            return _sgsEngine.TakeTopmostVars( count );
        }