pdf_util.h

changeset 74
12bc5088172e
parent 67
7add7411c1c2
child 81
0fc65859d436
     1.1 diff -r 6e306105c128 -r 12bc5088172e pdf_util.h
     1.2 --- a/pdf_util.h	Wed Mar 05 01:58:31 2003 +0000
     1.3 +++ b/pdf_util.h	Wed Mar 05 01:58:36 2003 +0000
     1.4 @@ -4,7 +4,7 @@
     1.5   *      will be compressed using ITU-T T.6 (G4) fax encoding.
     1.6   *
     1.7   * PDF routines
     1.8 - * $Id: pdf_util.h,v 1.3 2003/02/21 02:49:11 eric Exp $
     1.9 + * $Id: pdf_util.h,v 1.4 2003/03/04 17:58:36 eric Exp $
    1.10   * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
    1.11   *
    1.12   * This program is free software; you can redistribute it and/or modify
    1.13 @@ -24,14 +24,21 @@
    1.14   */
    1.15  
    1.16  
    1.17 +#include <assert.h>
    1.18 +
    1.19 +
    1.20  void pdf_fatal (char *fmt, ...);
    1.21  
    1.22  void *pdf_calloc (size_t nmemb, size_t size);
    1.23  
    1.24  char *pdf_strdup (char *s);
    1.25  
    1.26 +#if 1
    1.27 +#define pdf_assert(cond) assert(cond)
    1.28 +#else
    1.29  #define pdf_assert(cond) do \
    1.30      { \
    1.31        if (! (cond)) \
    1.32          pdf_fatal ("assert at %s(%d)\n", __FILE__, __LINE__); \
    1.33      } while (0)
    1.34 +#endif