mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
4a59210008
This change improves the way internal APIs are being hidden behind the `COSMO` define. The cosmo.h header will take care of defining that, so that a separate define statement isn't needed. This change also does a lot more to define which APIs are standard, and which belong to Cosmo.
12 lines
344 B
C
12 lines
344 B
C
#ifndef COSMOPOLITAN_LIBC_LOG_ROP_H_
|
|
#define COSMOPOLITAN_LIBC_LOG_ROP_H_
|
|
#include "libc/intrin/likely.h"
|
|
|
|
#define RETURN_ON_ERROR(expr) \
|
|
do { \
|
|
if (UNLIKELY((expr) == -1)) { \
|
|
goto OnError; \
|
|
} \
|
|
} while (0)
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_LOG_ROP_H_ */
|