cosmopolitan/libc/log/rop.h
2022-07-11 23:06:49 -07:00

12 lines
342 B
C

#ifndef COSMOPOLITAN_LIBC_LOG_ROP_H_
#define COSMOPOLITAN_LIBC_LOG_ROP_H_
#include "libc/bits/likely.h"
#define RETURN_ON_ERROR(expr) \
do { \
if (UNLIKELY((expr) == -1)) { \
goto OnError; \
} \
} while (0)
#endif /* COSMOPOLITAN_LIBC_LOG_ROP_H_ */