Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/os Provide an empty ASSE...



details:   https://anonhg.NetBSD.org/src/rev/e792bac660eb
branches:  trunk
changeset: 372213:e792bac660eb
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Oct 31 10:44:29 2022 +0000

description:
Provide an empty ASSERT macro ifdef _STANDALONE.

diffstat:

 external/cddl/osnet/dist/uts/common/os/list.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 805820f00872 -r e792bac660eb external/cddl/osnet/dist/uts/common/os/list.c
--- a/external/cddl/osnet/dist/uts/common/os/list.c     Mon Oct 31 10:32:28 2022 +0000
+++ b/external/cddl/osnet/dist/uts/common/os/list.c     Mon Oct 31 10:44:29 2022 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index