diff options
author | Haru <haru@dotalux.com> | 2015-12-27 17:35:25 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-06 15:14:49 +0100 |
commit | a1b0dae953f0dde5f614f828710bcee78b5f2b78 (patch) | |
tree | de1c5b46a05ccb108c0a2555b2c5f83a615b729c /travis.sh | |
parent | 3007a376242f00d8127e39e9e6a89c7e0e5a8b20 (diff) | |
download | hercules-a1b0dae953f0dde5f614f828710bcee78b5f2b78.tar.gz hercules-a1b0dae953f0dde5f614f828710bcee78b5f2b78.tar.bz2 hercules-a1b0dae953f0dde5f614f828710bcee78b5f2b78.tar.xz hercules-a1b0dae953f0dde5f614f828710bcee78b5f2b78.zip |
Introduced the BL_UCAST() macro as an alternative to explicit casts
- The benefit of using BL_UCAST() instead of an explicit cast is that it
produces a compiler error if the argument is not a block_list.
- The benefit of using BL_UCAST() instead of BL_CAST() is that the
block_list argument is guaranteed to be evaluated only once. As such
it can be used in places where the argument is a function.
- No block_list type checking is done. As such, if a different
block_list type is passed, behavior is undefined. The user should do
the checking beforehand.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'travis.sh')
0 files changed, 0 insertions, 0 deletions