]> git.sur5r.net Git - cc65/blobdiff - include/assert.h
Support for self explanatory KBCODE values
[cc65] / include / assert.h
index 04e1fab64a92be65ccacb515235bb8b08b8187f6..504964dc2d04e07441e3e23d3c33803c11959b11 100644 (file)
@@ -1,15 +1,15 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                assert.h                                  */
+/*                                 assert.h                                  */
 /*                                                                           */
-/*                               Diagnostics                                */
+/*                                Diagnostics                                */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 Ullrich von Bassewitz                                       */
-/*               Wacholderweg 14                                             */
-/*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* (C) 1998-2015, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -42,8 +42,8 @@
 #ifdef NDEBUG
 #  define assert(expr)
 #else
-extern void _afailed (const char*, unsigned);
-#  define assert(expr) if ((expr) == 0) _afailed (__FILE__, __LINE__)
+extern void __fastcall__ _afailed (const char*, unsigned);
+#  define assert(expr)  ((expr)? (void)0 : _afailed(__FILE__, __LINE__))
 #endif