ext/preprocessor/control/iif.bi

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

Summary
ext/preprocessor/control/iif.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_IifExpands one of two texts depending on a boolean condition.

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_Iif

# define fbextPP_Iif(c,
t,
f) fbextPP_Iif__##c(t, f)

Expands one of two texts depending on a boolean condition.

Parameters

cA boolean condition, having a value of false (0) or true (1).
tthe text to expand if c is true.
fthe text to expand if c is false.

Returns

One of the two texts.

# define fbextPP_Iif(c,
t,
f) fbextPP_Iif__##c(t, f)
Expands one of two texts depending on a boolean condition.