This file is part of the <ext/Preprocessor> library API, and can be directly included by user programs.
ext/ preprocessor/ repetition/ repeat.bi | This file is part of the <ext/Preprocessor> library API, and can be directly included by user programs. |
License | Copyright © 2009, FreeBASIC Extended Library Development Group Copyright © 2001, Housemarque Oy (http://www.housemarque.com) |
Macros | |
fbextPP_Repeat | Expands a macro a number of times. |
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
# define fbextPP_Repeat( c, m, data ) FBEXT_PP_CAT(fbextPP_Repeat__, c)(m, data, 0)
Expands a macro a number of times.
c | The number of times to repeat. |
m | A 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. |
data | Auxilliary data that is passed to the user-defined macro for every repeat. |
Varies.
This macro expands to m(0, data) m(1, data) ... m(n-1, data)
Expands a macro a number of times.
# define fbextPP_Repeat( c, m, data ) FBEXT_PP_CAT(fbextPP_Repeat__, c)(m, data, 0)