ext/ preprocessor/ array/ elem.bi

Summary
ext/ preprocessor/ array/ elem.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group Copyright © 2002, Paul Mensonides
Macros
fbextPP_ArrayElemReturns a certain element in an array.

License

Copyright © 2009, FreeBASIC Extended Library Development Group Copyright © 2002, Paul Mensonides

Distributed under the Boost Software License, Version 1.0.  See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

Macros

fbextPP_ArrayElem

# define fbextPP_ArrayElem(
   array,
   index
) fbextPP_TupleElem(fbextPP_ArraySize(array), index, fbextPP_ArrayData(array))

Returns a certain element in an array.

Parameters

arrayAn array.
indexThe zero-based position of the element in the array.

Returns

Returns the chosen element..

Description

Given an array (4, (a, b, c, d)) and index 2, this macro will expand to c.

# define fbextPP_ArrayElem(
   array,
   index
) fbextPP_TupleElem(fbextPP_ArraySize(array), index, fbextPP_ArrayData(array))
Returns a certain element in an array.