mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-24 00:41:11 -04:00
make sure errno is always set on failure
This commit is contained in:
parent
66aa98dbd9
commit
8b42e8c3d6
2 changed files with 10 additions and 6 deletions
4
util.h
4
util.h
|
@ -3,8 +3,8 @@
|
|||
|
||||
#include <stdnoreturn.h>
|
||||
|
||||
#define likely(x) __builtin_expect((x), 1)
|
||||
#define unlikely(x) __builtin_expect((x), 0)
|
||||
#define likely(x) __builtin_expect(!!(x), 1)
|
||||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
|
||||
#define COLD __attribute__((cold))
|
||||
#define UNUSED __attribute__((unused))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue