diff options
| author | George Hazan <george.hazan@gmail.com> | 2024-02-15 12:18:35 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-02-15 12:18:35 +0300 |
| commit | 31e72718ee54867accf0b739a24adc86f8b7ab54 (patch) | |
| tree | f964c10c5d97d9fe4fd2bd8187c250faedcb0fd7 /protocols/Tox/libtox/src/toxcore/attributes.h | |
| parent | 282e9c18d9d3b726cce3d2ef0babc88029661cb8 (diff) | |
libtox update
Diffstat (limited to 'protocols/Tox/libtox/src/toxcore/attributes.h')
| -rw-r--r-- | protocols/Tox/libtox/src/toxcore/attributes.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/protocols/Tox/libtox/src/toxcore/attributes.h b/protocols/Tox/libtox/src/toxcore/attributes.h index 3da768f2a3..087efe20dc 100644 --- a/protocols/Tox/libtox/src/toxcore/attributes.h +++ b/protocols/Tox/libtox/src/toxcore/attributes.h @@ -18,7 +18,7 @@ #define GNU_PRINTF(f, a) #endif -#if defined(__GNUC__) && defined(_DEBUG) && !defined(__OPTIMIZE__) +#if defined(__GNUC__) && defined(_DEBUG) #define non_null(...) __attribute__((__nonnull__(__VA_ARGS__))) #else #define non_null(...) @@ -26,6 +26,14 @@ #define nullable(...) +#ifdef SPARSE +#define bitwise __attribute__((bitwise)) +#define force __attribute__((force)) +#else +#define bitwise +#define force +#endif + //!TOKSTYLE+ -#endif // C_TOXCORE_TOXCORE_ATTRIBUTES_H +#endif /* C_TOXCORE_TOXCORE_ATTRIBUTES_H */ |
