<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,14 +3,17 @@
 
 #ifndef NDEBUG
 
-#define assert(x) if(!(x)){\
-			kprintf(&quot;Assertion failed on line %d of file %s\n&quot;, __LINE__, __FILE__); \
+#define assert(x) \
+	do { \
+		if(!(x)){\
+			kprintf(&quot;\nAssertion %s failed on %s:%u\n&quot;, #x, __FILE__, __LINE__); \
 			__asm__(&quot;int3&quot;); \
-		  }
+		} \
+	} while(0)
 
 #else
 
-#define assert(x)
+#define assert(x) ((void)0)
 
 #endif
 </diff>
      <filename>src/include/assert.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b36b8df90d02e82408483adccdee54b58e98e93</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Etches</name>
    <email>seadog@mehmoo.com</email>
  </author>
  <url>http://github.com/seadog/kaiser/commit/c9004398b4c3b8f2b699ec3e225ea95370465757</url>
  <id>c9004398b4c3b8f2b699ec3e225ea95370465757</id>
  <committed-date>2009-06-09T17:39:47-07:00</committed-date>
  <authored-date>2009-06-09T17:39:47-07:00</authored-date>
  <message>Improved the assertion macro</message>
  <tree>a4146aa096e9eab4b1277bb8c485a2ab55fe277e</tree>
  <committer>
    <name>Andrew Etches</name>
    <email>seadog@mehmoo.com</email>
  </committer>
</commit>
