Provide an empty ASSERT macro ifdef _STANDALONE.

This commit is contained in:
simonb 2022-10-31 10:44:29 +00:00
parent 424b4ac256
commit 6abe31b74d
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@
#include <sys/sysmacros.h>
#include <sys/debug.h>
#ifdef _STANDALONE
#define ASSERT(x) /* nothing */
#endif
#define list_d2l(a, obj) ((list_node_t *)(((char *)obj) + (a)->list_offset))
#define list_object(a, node) ((void *)(((char *)node) - (a)->list_offset))
#define list_empty(a) ((a)->list_head.list_next == &(a)->list_head)