annotate src/flac-1.2.1/doc/html/api/assert_8h-source.html @ 1:05aa0afa9217

Bring in flac, ogg, vorbis
author Chris Cannam
date Tue, 19 Mar 2013 17:37:49 +0000
parents
children
rev   line source
Chris@1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Chris@1 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
Chris@1 3 <title>FLAC: include/FLAC/assert.h Source File</title>
Chris@1 4 <link href="doxygen.css" rel="stylesheet" type="text/css">
Chris@1 5 </head><body>
Chris@1 6 <!-- Generated by Doxygen 1.4.2 -->
Chris@1 7 <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
Chris@1 8 <div class="nav">
Chris@1 9 <a class="el" href="dir_000000.html">include</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.html">FLAC</a></div>
Chris@1 10 <h1>assert.h</h1><div class="fragment"><pre class="fragment">00001 <span class="comment">/* libFLAC - Free Lossless Audio Codec library</span>
Chris@1 11 00002 <span class="comment"> * Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson</span>
Chris@1 12 00003 <span class="comment"> *</span>
Chris@1 13 00004 <span class="comment"> * Redistribution and use in source and binary forms, with or without</span>
Chris@1 14 00005 <span class="comment"> * modification, are permitted provided that the following conditions</span>
Chris@1 15 00006 <span class="comment"> * are met:</span>
Chris@1 16 00007 <span class="comment"> *</span>
Chris@1 17 00008 <span class="comment"> * - Redistributions of source code must retain the above copyright</span>
Chris@1 18 00009 <span class="comment"> * notice, this list of conditions and the following disclaimer.</span>
Chris@1 19 00010 <span class="comment"> *</span>
Chris@1 20 00011 <span class="comment"> * - Redistributions in binary form must reproduce the above copyright</span>
Chris@1 21 00012 <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span>
Chris@1 22 00013 <span class="comment"> * documentation and/or other materials provided with the distribution.</span>
Chris@1 23 00014 <span class="comment"> *</span>
Chris@1 24 00015 <span class="comment"> * - Neither the name of the Xiph.org Foundation nor the names of its</span>
Chris@1 25 00016 <span class="comment"> * contributors may be used to endorse or promote products derived from</span>
Chris@1 26 00017 <span class="comment"> * this software without specific prior written permission.</span>
Chris@1 27 00018 <span class="comment"> *</span>
Chris@1 28 00019 <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span>
Chris@1 29 00020 <span class="comment"> * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span>
Chris@1 30 00021 <span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span>
Chris@1 31 00022 <span class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR</span>
Chris@1 32 00023 <span class="comment"> * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
Chris@1 33 00024 <span class="comment"> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
Chris@1 34 00025 <span class="comment"> * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
Chris@1 35 00026 <span class="comment"> * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF</span>
Chris@1 36 00027 <span class="comment"> * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span>
Chris@1 37 00028 <span class="comment"> * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span>
Chris@1 38 00029 <span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
Chris@1 39 00030 <span class="comment"> */</span>
Chris@1 40 00031
Chris@1 41 00032 <span class="preprocessor">#ifndef FLAC__ASSERT_H</span>
Chris@1 42 00033 <span class="preprocessor"></span><span class="preprocessor">#define FLAC__ASSERT_H</span>
Chris@1 43 00034 <span class="preprocessor"></span>
Chris@1 44 00035 <span class="comment">/* we need this since some compilers (like MSVC) leave assert()s on release code (and we don't want to use their ASSERT) */</span>
Chris@1 45 00036 <span class="preprocessor">#ifdef DEBUG</span>
Chris@1 46 00037 <span class="preprocessor"></span><span class="preprocessor">#include &lt;assert.h&gt;</span>
Chris@1 47 00038 <span class="preprocessor">#define FLAC__ASSERT(x) assert(x)</span>
Chris@1 48 00039 <span class="preprocessor"></span><span class="preprocessor">#define FLAC__ASSERT_DECLARATION(x) x</span>
Chris@1 49 00040 <span class="preprocessor"></span><span class="preprocessor">#else</span>
Chris@1 50 00041 <span class="preprocessor"></span><span class="preprocessor">#define FLAC__ASSERT(x)</span>
Chris@1 51 00042 <span class="preprocessor"></span><span class="preprocessor">#define FLAC__ASSERT_DECLARATION(x)</span>
Chris@1 52 00043 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
Chris@1 53 00044 <span class="preprocessor"></span>
Chris@1 54 00045 <span class="preprocessor">#endif</span>
Chris@1 55 </pre></div>
Chris@1 56 <hr size="1">
Chris@1 57 <div class="copyright">
Chris@1 58 <!-- @@@ oh so hacky -->
Chris@1 59 <table>
Chris@1 60 <tr>
Chris@1 61 <td align="left">
Chris@1 62 Copyright (c) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
Chris@1 63 </td>
Chris@1 64 <td width="1%" align="right">
Chris@1 65 <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=13478&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
Chris@1 66 </td>
Chris@1 67 </tr>
Chris@1 68 </table>
Chris@1 69 </div>
Chris@1 70 <!-- Copyright (c) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson -->
Chris@1 71 <!-- Permission is granted to copy, distribute and/or modify this document -->
Chris@1 72 <!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
Chris@1 73 <!-- or any later version published by the Free Software Foundation; -->
Chris@1 74 <!-- with no invariant sections. -->
Chris@1 75 <!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
Chris@1 76 </body>
Chris@1 77 </html>