cosmopolitan/libc/log/rop.internal.h

13 lines
344 B
C
Raw Normal View History

#ifndef COSMOPOLITAN_LIBC_LOG_ROP_H_
#define COSMOPOLITAN_LIBC_LOG_ROP_H_
2022-08-11 19:13:18 +00:00
#include "libc/intrin/likely.h"
2022-07-12 06:06:49 +00:00
#define RETURN_ON_ERROR(expr) \
do { \
if (UNLIKELY((expr) == -1)) { \
goto OnError; \
} \
} while (0)
#endif /* COSMOPOLITAN_LIBC_LOG_ROP_H_ */