VisualC/external/include/FLAC/assert.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 09 Jan 2012 04:20:54 -0500
changeset 556 2686e67b59fd
parent 532 VisualC/flac/include/FLAC/assert.h@b8e8ae4852b2
child 748 5515b36f95ed
child 937 3797c39725bf
permissions -rw-r--r--
Moved external libraries into the "external" directory and added x64 build configuration.
slouken@532
     1
/* libFLAC - Free Lossless Audio Codec library
slouken@532
     2
 * Copyright (C) 2001,2002,2003,2004,2005,2006,2007  Josh Coalson
slouken@532
     3
 *
slouken@532
     4
 * Redistribution and use in source and binary forms, with or without
slouken@532
     5
 * modification, are permitted provided that the following conditions
slouken@532
     6
 * are met:
slouken@532
     7
 *
slouken@532
     8
 * - Redistributions of source code must retain the above copyright
slouken@532
     9
 * notice, this list of conditions and the following disclaimer.
slouken@532
    10
 *
slouken@532
    11
 * - Redistributions in binary form must reproduce the above copyright
slouken@532
    12
 * notice, this list of conditions and the following disclaimer in the
slouken@532
    13
 * documentation and/or other materials provided with the distribution.
slouken@532
    14
 *
slouken@532
    15
 * - Neither the name of the Xiph.org Foundation nor the names of its
slouken@532
    16
 * contributors may be used to endorse or promote products derived from
slouken@532
    17
 * this software without specific prior written permission.
slouken@532
    18
 *
slouken@532
    19
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
slouken@532
    20
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
slouken@532
    21
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
slouken@532
    22
 * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
slouken@532
    23
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
slouken@532
    24
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
slouken@532
    25
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
slouken@532
    26
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
slouken@532
    27
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
slouken@532
    28
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
slouken@532
    29
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
slouken@532
    30
 */
slouken@532
    31
slouken@532
    32
#ifndef FLAC__ASSERT_H
slouken@532
    33
#define FLAC__ASSERT_H
slouken@532
    34
slouken@532
    35
/* we need this since some compilers (like MSVC) leave assert()s on release code (and we don't want to use their ASSERT) */
slouken@532
    36
#ifdef DEBUG
slouken@532
    37
#include <assert.h>
slouken@532
    38
#define FLAC__ASSERT(x) assert(x)
slouken@532
    39
#define FLAC__ASSERT_DECLARATION(x) x
slouken@532
    40
#else
slouken@532
    41
#define FLAC__ASSERT(x)
slouken@532
    42
#define FLAC__ASSERT_DECLARATION(x)
slouken@532
    43
#endif
slouken@532
    44
slouken@532
    45
#endif