Fixed a stupid bug i just introduced

This commit is contained in:
Olivier Teulière 2005-03-27 22:08:31 +00:00
parent 57c1fcaf8e
commit bd07fedf18

View file

@ -2,7 +2,7 @@
* Copyright (C) 1999-2005 Eliot * Copyright (C) 1999-2005 Eliot
* Authors: Antoine Fraboulet <antoine.fraboulet@free.fr> * Authors: Antoine Fraboulet <antoine.fraboulet@free.fr>
* *
* $Id: debug.h,v 1.5 2005/03/27 21:45:04 ipkiss Exp $ * $Id: debug.h,v 1.6 2005/03/27 22:08:31 ipkiss Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -35,9 +35,9 @@
// and stops execution, otherwise do nothing. // and stops execution, otherwise do nothing.
# define ASSERT(cond, msg) \ # define ASSERT(cond, msg) \
{ \ { \
if (!cond) \ if (!(cond)) \
{ \ { \
cerr << "ASSERTION FAILED: " << msg << " (at " \ cerr << "ASSERTION FAILED: " << (msg) << " (at " \
<< __FILE__ << "#" << __LINE__ << ")\n"; \ << __FILE__ << "#" << __LINE__ << ")\n"; \
abort(); \ abort(); \
} \ } \