Skip to content

Commit 4e8b9c0

Browse files
committed
use CC_STATIC_ASSERT
1 parent 523be56 commit 4e8b9c0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

soes/esc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
* LICENSE file in the project root for full license information
44
*/
55
#include <string.h>
6-
#include <assert.h>
76
#include <cc.h>
87
#include "esc.h"
98
#include "esc_coe.h"
109
#include "esc_foe.h"
1110

12-
static_assert((MBXSIZE > ESC_MBXHSIZE) && (MBXSIZEBOOT > ESC_MBXHSIZE), "Mailbox size too small.");
11+
CC_STATIC_ASSERT((MBXSIZE > ESC_MBXHSIZE) && (MBXSIZEBOOT > ESC_MBXHSIZE), "Mailbox size too small.");
1312

1413
/** \file
1514
* \brief

soes/include/sys/gcc/cc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern "C"
1919
#ifdef __linux__
2020
#include <endian.h>
2121
#else
22-
#include <machine/endian.h>
22+
#include <machine/endian.h>
2323
#endif
2424

2525
#ifndef MIN
@@ -41,7 +41,7 @@ extern "C"
4141
#else
4242
#define CC_ASSERT(exp) assert (exp)
4343
#endif
44-
#define CC_STATIC_ASSERT(exp) _Static_assert (exp, "")
44+
#define CC_STATIC_ASSERT(exp, msg) _Static_assert (exp, msg)
4545

4646
#define CC_DEPRECATED __attribute__((deprecated))
4747

0 commit comments

Comments
 (0)