CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
unused.h
Go to the documentation of this file.
1
6
7
#pragma once
8
22
#if !defined(__clang__) && defined(__GNUC__)
23
#define unused_noeval(x) (_unused_helper(true ? (intptr_t)0 : (intptr_t)(x)))
24
#include <stdint.h>
25
__attribute__((always_inline))
inline
int
_unused_helper(intptr_t _dummy)
26
{
27
(void)_dummy;
28
return
0;
29
}
30
#else
31
#define unused_noeval(x) (true ? (void)0 : (void)(x))
32
#endif
33
44
#define nop_stmt ((void)0)
45
cx
utils
macros
unused.h
Generated by
1.9.8