ext/preprocessor/tuple/eat.bi

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

Summary
ext/preprocessor/tuple/eat.biThis file is part of the <ext/Preprocessor> library API, and can be directly included by user programs.
LicenseCopyright © 2007-2011, FreeBASIC Extended Library Development Group Copyright © 2001, Housemarque Oy (http://www.housemarque.com)
Macros
fbextPP_TupleEatconsumes a tuple of size size, which must be specified immediately following the call to this macro.

License

Copyright © 2007-2011, 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_TupleEat

# define fbextPP_TupleEat(size) fbextPP_TupleEat__##size

consumes a tuple of size size, which must be specified immediately following the call to this macro.  It has the effect of expanding into the name of a macro which uses the tuple as an argument list -- but always expands to nothing (``).

For example, to eat the 3-element tuple `(a,b,c)`, place a call to this macro immediately before it:

fbextPP_TupleEat(3)(a,b,c)

Parameters

sizeis the count of elements in the tuple.
tupleis the tuple to eat.
# define fbextPP_TupleEat(size) fbextPP_TupleEat__##size
consumes a tuple of size size, which must be specified immediately following the call to this macro.