chiark / gitweb /
macro: add _unlikely_() to assert_return()
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Nov 2013 00:10:40 +0000 (01:10 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Nov 2013 18:36:14 +0000 (19:36 +0100)
commitd3cfcae9db39b0cd01bd8c3db1dc57d6a04554a4
treea55a7686866028cb472cbe14f68b56d8af60baea
parent780dbeef9f9d2c9f416da50a07bf0aacf3cc66c7
macro: add _unlikely_() to assert_return()

As the name indicates assert_return() is really just for assertions,
i.e. where it's a programming error if the assertion does not hold.
Hence it is safe to add _unlikely_() decorators for the expression to
check.
src/shared/macro.h