From: Ben Pfaff Date: Sun, 26 Sep 2004 02:30:11 +0000 (+0000) Subject: Turn off assertions when running in the kernel. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b6db7448e41437dadc6b667929dea4a4f4013a6;p=pintos-anon Turn off assertions when running in the kernel. --- diff --git a/src/lib/string.c b/src/lib/string.c index cb042f0..8971fae 100644 --- a/src/lib/string.c +++ b/src/lib/string.c @@ -1,4 +1,8 @@ #include + +#ifdef KERNEL +#define NDEBUG +#endif #include /* Copies SIZE bytes from SRC to DST, which must not overlap.