ext/ preprocessor/ repetition/ repeat.bi

This file is part of the <ext/Preprocessor> library API, and can be directly included by user programs.

Summary
ext/ preprocessor/ repetition/ repeat.biThis file is part of the <ext/Preprocessor> library API, and can be directly included by user programs.
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group Copyright © 2001, Housemarque Oy (http://www.housemarque.com)
Macros
fbextPP_RepeatExpands a macro a number of times.

License

Copyright © 2009, FreeBASIC Extended Library Development Group Copyright © 2001, Housemarque Oy (http://www.housemarque.com)

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_Repeat

# define fbextPP_Repeat(c,
m,
data) FBEXT_PP_CAT(fbextPP_Repeat__, c)(m, data, 0)

Expands a macro a number of times.

Parameters

cThe number of times to repeat.
mA user-defined macro called for each repeat.  It has the form m(n, data), where n is the current repetition number, and data is auxilliary data passed to fbextPP_Repeat.
dataAuxilliary data that is passed to the user-defined macro for every repeat.

Returns

Varies.

Description

This macro expands to m(0, data) m(1, data) ...  m(n-1, data)

# define fbextPP_Repeat(c,
m,
data) FBEXT_PP_CAT(fbextPP_Repeat__, c)(m, data, 0)
Expands a macro a number of times.