mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 10:48:29 +00:00
Further improve JSON serialization
This commit is contained in:
parent
4814b6bdf8
commit
6ee18986e4
20 changed files with 868 additions and 687 deletions
|
@ -1,11 +1,12 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_LOG_ROP_H_
|
||||
#define COSMOPOLITAN_LIBC_LOG_ROP_H_
|
||||
#include "libc/bits/likely.h"
|
||||
|
||||
#define RETURN_ON_ERROR(expr) \
|
||||
do { \
|
||||
if ((expr) == -1) { \
|
||||
goto OnError; \
|
||||
} \
|
||||
#define RETURN_ON_ERROR(expr) \
|
||||
do { \
|
||||
if (UNLIKELY((expr) == -1)) { \
|
||||
goto OnError; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_LOG_ROP_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue