ext/ preprocessor/ array/ pushfront.bi | |
License | Copyright © 2009, FreeBASIC Extended Library Development Group Copyright © 2002, Paul Mensonides |
Macros | |
fbextPP_ArrayPushFront | Adds an element to the beginning of an array. |
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
# define fbextPP_ArrayPushFront( array, elem ) fbextPP_ArrayPushFront__S(array, elem, FBEXT_PP_ARRAY_SIZE(array))
Adds an element to the beginning of an array.
array | An array. |
elem | The element to add. |
The new array.
Given an array (4, (a, b, c, d)), this macro will expand to (5, (elem, a, b, c, d)).
Adds an element to the beginning of an array.
# define fbextPP_ArrayPushFront( array, elem ) fbextPP_ArrayPushFront__S(array, elem, FBEXT_PP_ARRAY_SIZE(array))