Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
macros.h
1#pragma once
2
3#include <stddef.h>
4
5#define CHK_WRITE_ERR(result, call) \
6 do { \
7 ssize_t CHK_WRITE_ERR_ret = call; \
8 if (CHK_WRITE_ERR_ret < 0) { \
9 return result; \
10 } else { \
11 result += CHK_WRITE_ERR_ret; \
12 } \
13 } while (0)