|
@@ -11,20 +11,12 @@
|
|
extern "C" {
|
|
extern "C" {
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-/* Assert */
|
|
|
|
-#include <assert.h>
|
|
|
|
-#define UA_assert(ignore) assert(ignore)
|
|
|
|
-
|
|
|
|
/* BSD Queue Macros */
|
|
/* BSD Queue Macros */
|
|
#include "queue.h"
|
|
#include "queue.h"
|
|
|
|
|
|
/* Macro-Expand for MSVC workarounds */
|
|
/* Macro-Expand for MSVC workarounds */
|
|
#define UA_MACRO_EXPAND(x) x
|
|
#define UA_MACRO_EXPAND(x) x
|
|
|
|
|
|
-/* container_of */
|
|
|
|
-#define container_of(ptr, type, member) \
|
|
|
|
- (type *)((uintptr_t)ptr - offsetof(type,member))
|
|
|
|
-
|
|
|
|
#ifdef UA_ENABLE_MULTITHREADING
|
|
#ifdef UA_ENABLE_MULTITHREADING
|
|
/* Thread Local Storage */
|
|
/* Thread Local Storage */
|
|
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|