[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/include stratagus.h
From: |
Jimmy Salmon |
Subject: |
[Stratagus-CVS] stratagus/src/include stratagus.h |
Date: |
Wed, 12 Nov 2003 15:07:27 -0500 |
CVSROOT: /cvsroot/stratagus
Module name: stratagus
Branch:
Changes by: Jimmy Salmon <address@hidden> 03/11/12 15:07:27
Modified files:
src/include : stratagus.h
Log message:
DebugCheck shows the code that failed
Patches:
Index: stratagus/src/include/stratagus.h
diff -u stratagus/src/include/stratagus.h:1.27
stratagus/src/include/stratagus.h:1.28
--- stratagus/src/include/stratagus.h:1.27 Fri Oct 31 17:16:57 2003
+++ stratagus/src/include/stratagus.h Wed Nov 12 15:07:27 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: stratagus.h,v 1.27 2003/10/31 22:16:57 jsalmon3 Exp $
+// $Id: stratagus.h,v 1.28 2003/11/12 20:07:27 jsalmon3 Exp $
#ifndef __STRATAGUS_H__
#define __STRATAGUS_H__
@@ -186,9 +186,9 @@
/**
** Debug check condition. If cond is true abort with file,line.
*/
-#define DebugCheck(cond) do{ if( cond ) { \
- fprintf(stderr,"DebugCheck at %s:%d\n",__FILE__,__LINE__); \
- abort(); } }while( 0 )
+#define DebugCheck(cond) do { if (cond) { \
+ fprintf(stderr, "DebugCheck at %s:%d: %s\n", __FILE__, __LINE__,
#cond); \
+ abort(); }} while (0)
/**
** Print debug information of level 0.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/include stratagus.h,
Jimmy Salmon <=