Embedded SDK
Embedded SDK
lib_cxng
include
lcx_wrappers.h
Go to the documentation of this file.
1
#pragma once
2
3
/*
4
* This file is only required when the macro CX_THROW is used (ie. in cx
5
* _no_throw wrappers.
6
*
7
* This macro can't be defined in cx_errors.h because tests can't build when
8
* exceptions.h is included.
9
*/
10
11
#include "exceptions.h"
12
#include "os_helpers.h"
// for UNUSED
13
14
/* used by wrappers */
15
#define CX_THROW(call) \
16
do { \
17
cx_err_t error = call; \
18
if (error) { \
19
THROW(error); \
20
} \
21
} while (0)
Generated by
1.9.1