]> pd.if.org Git - pdclib/blobdiff - includes/assert.h
Forgot the header guard on string.h. Bumped release date in Readme.txt.
[pdclib] / includes / assert.h
diff --git a/includes/assert.h b/includes/assert.h
deleted file mode 100644 (file)
index f99ccd7..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
-// Provides the debug macro assert().
-// ----------------------------------------------------------------------------
-
-#ifndef __ASSERT_H
-#define __ASSERT_H __ASSERT_H
-
-// ----------------------------------------------------------------------------
-// AUXILIARY
-
-// Helper function doing the print to stderr and call to abort().
-void __assert( char const * const expression, // the tested expression
-               char const * const file,       // name of source file
-               char const * const function,   // name of function
-               int const line );              // number of source file line
-
-// ----------------------------------------------------------------------------
-// DEFINES
-
-// TODO: Check the macro for if-compatibility.
-
-#undef assert
-#if defined NDEBUG
-#define assert( x ) ( (void) 0 )
-#else
-#define assert( x ) ( x ) ? ( (void) 0 ) \
-                          :  __assert( #x, __FILE__, __func__, __LINE__ )
-#endif
-
-#endif // __ASSERT_H