gserror.h 1.0 KB

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