1 /* Copyright (C) 1994, 1997, 1998 Aladdin Enterprises. All rights reserved. 2 3 This software is provided AS-IS with no warranty, either express or 4 implied. 5 6 This software is distributed under license and may not be copied, 7 modified or distributed except as expressly authorized under the terms 8 of the license contained in the file LICENSE in this distribution. 9 10 For more information about licensing, please refer to 11 http://www.ghostscript.com/licensing/. For information on 12 commercial licensing, go to http://www.artifex.com/licensing/ or 13 contact Artifex Software, Inc., 101 Lucas Valley Road #110, 14 San Rafael, CA 94903, U.S.A., +1(415)492-9861. 15 */ 16 17 /* $Id: gserror.h,v 1.9 2004/12/08 21:35:13 stefan Exp $ */ 18 /* Error return macros */ 19 20 #ifndef gserror_INCLUDED 21 # define gserror_INCLUDED 22 23 int gs_log_error(int, const char *, int); 24 #ifndef DEBUG 25 # define gs_log_error(err, file, line) (err) 26 #endif 27 #define gs_note_error(err) gs_log_error(err, __FILE__, __LINE__) 28 #define return_error(err) return gs_note_error(err) 29 30 #endif /* gserror_INCLUDED */ 31