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=22b06cfcc0dbb31b2f791015352f704c0d142a60;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.