projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfa0051
)
Turn off assertions when running in the kernel.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 26 Sep 2004 02:30:11 +0000
(
02:30
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 26 Sep 2004 02:30:11 +0000
(
02:30
+0000)
src/lib/string.c
patch
|
blob
|
history
diff --git
a/src/lib/string.c
b/src/lib/string.c
index cb042f02242d02a2090f6566016fb45f67c0df21..8971fae21b3c4d6da492b2e54614dbb3e6f8e058 100644
(file)
--- a/
src/lib/string.c
+++ b/
src/lib/string.c
@@
-1,4
+1,8
@@
#include <string.h>
+
+#ifdef KERNEL
+#define NDEBUG
+#endif
#include <debug.h>
/* Copies SIZE bytes from SRC to DST, which must not overlap.