[ CCUnit project page ] |  | [ CCUnit home page ]

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

# CCUnitConfig.h

Go to the documentation of this file.

    00001 /* -*- C -*- */
    00002 /* Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
    00003    This file is part of the CCUnit Library.
    00004
    00005    The CCUnit Library is free software; you can redistribute it and/or
    00006    modify it under the terms of the GNU Lesser General Public License
    00007    as published by the Free Software Foundation; either version 2.1 of
    00008    the License, or (at your option) any later version.
    00009
    00010    The CCUnit Library is distributed in the hope that it will be
    00011    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
    00012    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00013    GNU Lesser General Public License for more details.
    00014
    00015    You should have received a copy of the GNU Lesser General Public
    00016    License along with the CCUnit Library; see the file COPYING.LESSER.
    00017    If not, write to the Free Software Foundation, Inc., 59 Temple
    00018    Place - Suite 330, Boston, MA 02111-1307, USA.
    00019 */
    00020
    00021 /*
    00022  * $Id: CCUnitConfig.h,v 1.10 2010/08/16 05:07:00 tsutsumi Exp $
    00023  */
    00024
    00028 #ifndef CCUNITCONFIG_H
    00029 #define CCUNITCONFIG_H
    00030
    00031 #include <ccunit/config.h>
    00032
    00033 #if CCUNIT_STDC_HEADERS
    00034 #include <stdlib.h>
    00035 #include <string.h>
    00036 #endif
    00037
    00038 #if CCUNIT_WITH_DMALLOC
    00039 #  include <dmalloc.h>
    00040 #endif
    00041
    00042 #if CCUNIT_HAVE_STDBOOL_H
    00043 #include <stdbool.h>
    00044 #elif defined (__cplusplus)
    00045 #elif CCUNIT_HAVE__BOOL
    00046 #define bool _Bool
    00047 #define true ((bool)1)
    00048 #define false ((bool)0)
    00049 #elif !defined (bool)
    00050 #define bool int
    00051 #define true (1)
    00052 #define false (0)
    00053 #endif
    00054
    00060 #define safe_free(p) (!p ? NULL : (free ((void*)p), (p) = NULL))
    00061
    00067 #define safe_strdup(s) (!s ? NULL : strdup (s))
    00068
    00069 #endif

| hosts this site. |  | Send comments to: CCUnit Developer |