--- gvpe/src/slog.h 2003/04/06 04:17:36 1.3 +++ gvpe/src/slog.h 2005/04/26 00:55:56 1.7 @@ -1,9 +1,10 @@ /* slog.h -- logging - - Copyright (C) 2003 Marc Lehmann + Copyright (C) 2003 Marc Lehmann - This program is free software; you can redistribute it and/or modify + This file is part of GVPE. + + GVPE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. @@ -14,8 +15,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + along with gvpe; if not, write to the Free Software + Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef SLOG_H__ @@ -75,6 +76,9 @@ #endif extern void fatal (const char *m); +extern void require_failed (const char *file, int line, const char *info); + +#define require(expr) if (!(expr)) require_failed (__FILE__, __LINE__, #expr) #endif