⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aflibdebug_8h-source.html

📁 一个共享源码的音频库5(doc 文档)
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>aflibDebug.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.15 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>aflibDebug.h</h1><a href="aflibDebug_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001     <font class="comment">/*</font>00002 <font class="comment"></font>00003 <font class="comment">    Copyright (C) 2000 Stefan Westerfeld</font>00004 <font class="comment">                       stefan@space.twc.de</font>00005 <font class="comment"></font>00006 <font class="comment">    This library is free software; you can redistribute it and/or</font>00007 <font class="comment">    modify it under the terms of the GNU Library General Public</font>00008 <font class="comment">    License as published by the Free Software Foundation; either</font>00009 <font class="comment">    version 2 of the License, or (at your option) any later version.</font>00010 <font class="comment">  </font>00011 <font class="comment">    This library is distributed in the hope that it will be useful,</font>00012 <font class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</font>00013 <font class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</font>00014 <font class="comment">    Library General Public License for more details.</font>00015 <font class="comment">   </font>00016 <font class="comment">    You should have received a copy of the GNU Library General Public License</font>00017 <font class="comment">    along with this library; see the file COPYING.LIB.  If not, write to</font>00018 <font class="comment">    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,</font>00019 <font class="comment">    Boston, MA 02111-1307, USA.</font>00020 <font class="comment"></font>00021 <font class="comment"></font>00022 <font class="comment">    Some inspiration taken from glib.</font>00023 <font class="comment">    Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald</font>00024 <font class="comment">    Modified by the GLib Team and others 1997-1999.</font>00025 <font class="comment"></font>00026 <font class="comment">    */</font>00027 00028 <font class="preprocessor">#ifndef _AFLIBDEBUG_H_</font>00029 <font class="preprocessor"></font><font class="preprocessor">#define _AFLIBDEBUG_H_</font>00030 <font class="preprocessor"></font>00031 <font class="comment">/*</font>00032 <font class="comment"> * BC - Status (2000-09-30): Debug.</font>00033 <font class="comment"> *</font>00034 <font class="comment"> * Collection class, no instance, no members. Thus binary compatible (will</font>00035 <font class="comment"> * be kept).</font>00036 <font class="comment"> */</font>00037 <a name="l00038"></a><a class="code" href="aflibDebug_8h.html#a0">00038</a> <font class="preprocessor">#define aflib_fatal     ::aflibDebug::fatal</font><a name="l00039"></a><a class="code" href="aflibDebug_8h.html#a1">00039</a> <font class="preprocessor"></font><font class="preprocessor">#define aflib_warning   ::aflibDebug::warning</font><a name="l00040"></a><a class="code" href="aflibDebug_8h.html#a2">00040</a> <font class="preprocessor"></font><font class="preprocessor">#define aflib_info      ::aflibDebug::info</font><a name="l00041"></a><a class="code" href="aflibDebug_8h.html#a3">00041</a> <font class="preprocessor"></font><font class="preprocessor">#define aflib_debug     ::aflibDebug::debug</font>00042 <font class="preprocessor"></font>00043 <font class="comment">/* source compatibility with older sources */</font><a name="l00044"></a><a class="code" href="aflibDebug_8h.html#a4">00044</a> <font class="preprocessor">#define aflibdebug      ::aflibDebug::debug</font><a name="l00045"></a><a class="code" href="aflibDebug_8h.html#a5">00045</a> <font class="preprocessor"></font><font class="preprocessor">#define setaflibdebug(x)    aflib_warning("setaflibdebug is obsolete")</font>00046 <font class="preprocessor"></font>00047 <font class="preprocessor">#ifdef __GNUC__</font>00048 <font class="preprocessor"></font>00049 <font class="preprocessor">#define aflib_return_if_fail(expr)                                      \</font>00050 <font class="preprocessor">     if (!(expr))                                                       \</font>00051 <font class="preprocessor">     {                                                                  \</font>00052 <font class="preprocessor">       aflib_warning ("file %s: line %d (%s): assertion failed: (%s)",  \</font>00053 <font class="preprocessor">          __FILE__, __LINE__, __PRETTY_FUNCTION__, #expr);              \</font>00054 <font class="preprocessor">       return;                                                          \</font>00055 <font class="preprocessor">     }</font>00056 <font class="preprocessor"></font>00057 <font class="preprocessor">#define aflib_return_val_if_fail(expr,val)                              \</font>00058 <font class="preprocessor">     if (!(expr))                                                       \</font>00059 <font class="preprocessor">     {                                                                  \</font>00060 <font class="preprocessor">       aflib_warning ("file %s: line %d (%s): assertion failed: (%s)",      \</font>00061 <font class="preprocessor">          __FILE__, __LINE__, __PRETTY_FUNCTION__, #expr);              \</font>00062 <font class="preprocessor">       return (val);                                                    \</font>00063 <font class="preprocessor">     }</font>00064 <font class="preprocessor"></font>00065 <font class="preprocessor">#define aflib_assert(expr)                                              \</font>00066 <font class="preprocessor">     if (!(expr))                                                       \</font>00067 <font class="preprocessor">       aflib_fatal ("file %s: line %d (%s): assertion failed: (%s)",    \</font>00068 <font class="preprocessor">          __FILE__, __LINE__, __PRETTY_FUNCTION__, #expr);              \</font>00069 <font class="preprocessor"></font>00070 <font class="preprocessor"></font><font class="preprocessor">#else</font>00071 <font class="preprocessor"></font><a name="l00072"></a><a class="code" href="aflibDebug_8h.html#a6">00072</a> <font class="preprocessor">#define aflib_return_if_fail(expr)                                      \</font>00073 <font class="preprocessor">     if (!(expr))                                                       \</font>00074 <font class="preprocessor">     {                                                                  \</font>00075 <font class="preprocessor">       aflib_warning ("file %s: line %d: assertion failed: (%s)",       \</font>00076 <font class="preprocessor">          __FILE__, __LINE__, #expr);                                   \</font>00077 <font class="preprocessor">       return;                                                          \</font>00078 <font class="preprocessor">     }</font>00079 <font class="preprocessor"></font><a name="l00080"></a><a class="code" href="aflibDebug_8h.html#a7">00080</a> <font class="preprocessor">#define aflib_return_val_if_fail(expr,val)                              \</font>00081 <font class="preprocessor">     if (!(expr))                                                       \</font>00082 <font class="preprocessor">     {                                                                  \</font>00083 <font class="preprocessor">       aflib_warning ("file %s: line %d: assertion failed: (%s)",       \</font>00084 <font class="preprocessor">          __FILE__, __LINE__, #expr);                                   \</font>00085 <font class="preprocessor">       return (val);                                                    \</font>00086 <font class="preprocessor">     }</font>00087 <font class="preprocessor"></font><a name="l00088"></a><a class="code" href="aflibDebug_8h.html#a8">00088</a> <font class="preprocessor">#define aflib_assert(expr)                                              \</font>00089 <font class="preprocessor">     if (!(expr))                                                       \</font>00090 <font class="preprocessor">    aflib_fatal ("file %s: line %d: assertion failed: (%s)",        \</font>00091 <font class="preprocessor">          __FILE__, __LINE__, #expr);                                   \</font>00092 <font class="preprocessor"></font>00093 <font class="preprocessor"></font><font class="preprocessor">#endif</font>00094 <font class="preprocessor"></font><a name="l00095"></a><a class="code" href="classaflibDebug.html">00095</a> <font class="keyword">class </font><a class="code" href="classaflibDebug.html">aflibDebug</a> {00096     <font class="keyword">public</font>:<a name="l00097"></a><a class="code" href="classaflibDebug.html#s4">00097</a>         <font class="keyword">enum</font> <a class="code" href="classaflibDebug.html#s4">Level</a> { <a class="code" href="classaflibDebug.html#s4s0">lFatal</a> = 3, <a class="code" href="classaflibDebug.html#s4s1">lWarning</a> = 2, <a class="code" href="classaflibDebug.html#s4s2">lInfo</a> = 1, <a class="code" href="classaflibDebug.html#s4s3">lDebug</a> = 0 };00098 00103         <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classaflibDebug.html#d0">init</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *prefix, <a class="code" href="classaflibDebug.html#s4">Level</a> level);00104 00105         <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classaflibDebug.html#d1">fatal</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *fmt,...);     <font class="comment">// print on stderr &amp; abort</font>00106         <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classaflibDebug.html#d2">warning</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *fmt,...);   <font class="comment">// print on stderr</font>00107         <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classaflibDebug.html#d3">info</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *fmt,...);      <font class="comment">// print on stdout</font>00108         <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classaflibDebug.html#d4">debug</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *fmt,...);     <font class="comment">// print on stdout</font>00109 00114         <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classaflibDebug.html#d5">messageApp</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *appName);00115 00116     };00117 00118 <font class="preprocessor">#endif</font></pre></div><hr><address align="right"><small>Generated on Wed May 8 20:51:06 2002 for Open Source Audio Library Project by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.15 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -