* True iff blockNumber is valid.
*/
#define BlockNumberIsValid(blockNumber) \
- ((bool) ((BlockNumber) (blockNumber) != InvalidBlockNumber))
+ ((BlockNumber) (blockNumber) != InvalidBlockNumber)
/*
* BlockIdIsValid
* True iff the block identifier is valid.
*/
#define BlockIdIsValid(blockId) \
- ((bool) PointerIsValid(blockId))
+ PointerIsValid(blockId)
/*
* BlockIdSet
*/
#define BlockIdSet(blockId, blockNumber) \
( \
- AssertMacro(PointerIsValid(blockId)), \
(blockId)->bi_hi = (blockNumber) >> 16, \
(blockId)->bi_lo = (blockNumber) & 0xffff \
)
*/
#define BlockIdCopy(toBlockId, fromBlockId) \
( \
- AssertMacro(PointerIsValid(toBlockId)), \
- AssertMacro(PointerIsValid(fromBlockId)), \
(toBlockId)->bi_hi = (fromBlockId)->bi_hi, \
(toBlockId)->bi_lo = (fromBlockId)->bi_lo \
)
* Retrieve the block number from a block identifier.
*/
#define BlockIdGetBlockNumber(blockId) \
-( \
- AssertMacro(BlockIdIsValid(blockId)), \
- ((((BlockNumber) (blockId)->bi_hi) << 16) | ((BlockNumber) (blockId)->bi_lo)) \
-)
+ ((((BlockNumber) (blockId)->bi_hi) << 16) | ((BlockNumber) (blockId)->bi_lo))
#endif /* BLOCK_H */